/* ===========================================
   COMPONENTS - Buttons, Cards, UI Elements
   =========================================== */

/* ------------------------------------- BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 2px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: all 150ms ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ------------------------------------- STATS GRID */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.stat {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 14px;
}

.stat .k {
  font-family: "Old Standard TT", serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
}

.stat .k .unit {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
}

.stat .d {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.stat .c {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-2);
}

/* ------------------------------------- PULLQUOTE */
.pullquote {
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  margin: 22px 0 8px;
}

.pullquote .mk {
  font-size: 50px;
  line-height: 0;
  vertical-align: -14px;
  color: var(--accent);
  font-style: normal;
}

.attr {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ------------------------------------- AVATAR */
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(135deg, var(--bg-2) 0 4px, color-mix(in oklab, var(--bg-2) 85%, var(--ink)) 4px 5px);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Old Standard TT", serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-2);
  flex-shrink: 0;
}

/* ------------------------------------- TESTIMONIAL */
.testimonial {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}

.testimonial .q {
  font-family: "Old Standard TT", serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 8px;
}

.testimonial .m {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.testimonial .m .verified {
  color: var(--accent);
}

/* ------------------------------------- MARKS (checkmarks etc) */
.mark {
  display: inline-block;
  width: 20px;
  text-align: center;
  font-family: "Old Standard TT", serif;
  font-weight: 700;
  font-size: 20px;
}

.mark.yes { color: var(--accent); }
.mark.no  { color: var(--muted); opacity: 0.5; }
.mark.mid { color: var(--ink-2); }

/* ------------------------------------- STAMP */
.stamp {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 110px;
  height: 110px;
  border: 2px solid var(--stamp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  color: var(--stamp);
  font-family: "Old Standard TT", serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  opacity: 0.9;
}

.stamp::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed var(--stamp);
  border-radius: 50%;
}

/* ------------------------------------- TWEAKS PANEL */
.tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 100;
  width: 300px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  display: none;
}

.tweaks-panel.active {
  display: block;
}

.tweaks-panel header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tweaks-body {
  padding: 16px;
}

.tw-group {
  margin-bottom: 18px;
}

.tw-group > label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.tw-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.tw-choice {
  padding: 8px 10px;
  border: 1px solid var(--rule);
  background: var(--bg);
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tw-choice.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.tw-swatches {
  display: flex;
  gap: 6px;
}

.tw-sw {
  flex: 1;
  height: 36px;
  border: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.5);
}

.tw-sw.active {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
