/* slothtrading.com
   Green + violet, on the dark base Aftermark's own ui/theme.js already ships.
   The green (#3ee08f) is literally Aftermark's positive colour, so the site and
   the product read as one company rather than two brands. */

:root {
  --bg:        #100e18;
  --surface:   #191527;
  --surface-2: #211c33;
  --text:      #ece9f5;
  --muted:     #9b93b5;
  --green:     #3ee08f;
  --green-dim: #29a86a;
  --violet:    #a78bfa;
  --violet-2:  #7c5cf0;
  --accent:    var(--green);
  --neg:       #ff8a80;
  --warn:      #eab308;
  --border:    #2c2542;
  --maxw:      760px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:        #ffffff;
    --surface:   #f8f7fc;
    --surface-2: #f1eefb;
    --text:      #1c1830;
    --muted:     #5d5677;
    --green:     #0f7a4a;
    --green-dim: #0f7a4a;
    --violet:    #6d28d9;
    --violet-2:  #5b21b6;
    --accent:    var(--green);
    --neg:       #b3261e;
    --warn:      #8a6100;
    --border:    #ded8f0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
}
header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--green), var(--violet) 65%, transparent);
}
header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px;
}
.brand {
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--violet); font-weight: 500; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a:focus { color: var(--green); text-decoration: underline; }
nav a[aria-current="page"] {
  color: var(--text); font-weight: 600;
  box-shadow: inset 0 -2px 0 0 var(--violet);
}

/* ---------- type ---------- */

main { padding: 40px 0 8px; }

h1 {
  font-size: 30px; line-height: 1.25; margin: 0 0 12px;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 20px; margin: 40px 0 10px; letter-spacing: -0.01em;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
  position: relative;
}
h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 46px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--violet));
}
h3 { font-size: 16px; margin: 26px 0 6px; }
p  { margin: 0 0 14px; }
.lede { font-size: 18px; color: var(--muted); margin-bottom: 26px; }
a { color: var(--green); }
a:hover { color: var(--violet); }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 7px; }
li::marker { color: var(--violet); }
small { color: var(--muted); font-size: 13px; }
strong { color: var(--text); }
code {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 5px; font-size: 13px; color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- blocks ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 20px 18px 22px; margin: 0 0 16px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--green), var(--violet));
  opacity: 0.9;
}
.card h3 { margin-top: 0; color: var(--text); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.note {
  border-left: 3px solid var(--warn);
  background: var(--surface);
  padding: 14px 16px; border-radius: 0 8px 8px 0; margin: 0 0 18px;
}
.note p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.pill {
  display: inline-block; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600;
  color: var(--violet);
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.42);
  border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  color: var(--violet); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
tbody tr:hover td, tr:hover td { background: rgba(167, 139, 250, 0.07); }
.scroll { overflow-x: auto; }

.price {
  font-size: 44px; font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.1; margin: 0 0 4px;
  color: var(--green);
}
.price small { font-size: 15px; font-weight: 400; color: var(--muted); }

/* ---------- footer ---------- */

footer {
  margin-top: 56px; border-top: 1px solid var(--border);
  background: var(--surface); padding: 26px 0 34px;
  position: relative;
}
footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet) 35%, var(--green));
}
footer .wrap { display: flex; flex-direction: column; gap: 12px; }
.footlinks { display: flex; gap: 16px; flex-wrap: wrap; }
.footlinks a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footlinks a:hover { color: var(--green); text-decoration: underline; }
.legalname { color: var(--muted); font-size: 13px; margin: 0; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
