/* ============================================================
   Return Delta — Shared design tokens & base styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette */
  --teal:        #00A896;
  --teal-light:  #E1F5EE;
  --teal-pale:   #F2FBF7;
  --teal-dark:   #0F6E56;
  --mint:        #02C39A;
  --blue:        #1A5F7A;
  --blue-mid:    #05668D;
  --amber:       #FF9F1C;
  --amber-pale:  #FFF3E0;
  --amber-dark:  #c47a00;
  --rose:        #E26D5A;
  --rose-pale:   #FBEAE6;
  --gunmetal:    #253237;
  --gunmetal-2:  #1a2428;

  /* Neutrals */
  --text:        #1c2528;
  --muted:       #5a6b71;
  --faint:       #8fa3ab;
  --border:      #dde6e9;
  --border-2:    #eef3f5;
  --bg:          #f5f8f9;
  --bg-2:        #eef4f6;
  --surface:     #ffffff;

  /* Type */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'DM Mono', ui-monospace, "SF Mono", Menlo, monospace;

  /* Shape */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-1:  0 1px 2px rgba(15, 30, 40, 0.04), 0 4px 16px rgba(15, 30, 40, 0.05);
  --shadow-2:  0 2px 6px rgba(15, 30, 40, 0.06), 0 18px 44px rgba(15, 30, 40, 0.08);
}

html, body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }

button { font-family: inherit; cursor: pointer; }

img { max-width: 100%; display: block; }

::selection { background: var(--teal-light); color: var(--teal-dark); }

/* ── Brand wordmark ── */
.rd-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gunmetal);
}
.rd-mark__logo {
  width: 26px;
  height: 26px;
  background: url('../favicon.svg') center/contain no-repeat;
  flex-shrink: 0;
}
.rd-mark__name {
  font-size: 16px;
}
.rd-mark__name strong { font-weight: 600; }
.rd-mark__by {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 8px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
}

/* ── Utility ── */
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg-2);
  color: var(--muted);
  white-space: nowrap;
}
.pill--teal   { background: var(--teal-light); color: var(--teal-dark); border-color: rgba(0,168,150,.18); }
.pill--amber  { background: var(--amber-pale); color: var(--amber-dark); border-color: #ffe0a0; }
.pill--rose   { background: var(--rose-pale); color: #993C1D; border-color: #f3c8be; }
.pill--blue   { background: #E5EFF5; color: var(--blue); border-color: #c8dde9; }
.pill--gun    { background: #e8edef; color: var(--gunmetal); border-color: #cdd6da; }

.pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--gunmetal);
  color: #fff;
}
.btn--primary:hover { background: var(--gunmetal-2); color: #fff; }
.btn--teal {
  background: var(--teal);
  color: #fff;
}
.btn--teal:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: var(--bg); border-color: var(--faint); }
.btn--sm { padding: 6px 11px; font-size: 12px; }

/* Channel badges (used everywhere) */
.ch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
}
.ch__dot {
  width: 7px; height: 7px;
  border-radius: 2px;
}
.ch--bol      .ch__dot { background: #0000A4; }
.ch--zalando  .ch__dot { background: #FF6900; }
.ch--amazon   .ch__dot { background: #FF9900; }
.ch--shopify  .ch__dot { background: #95BF47; }
.ch--own      .ch__dot { background: var(--teal); }

/* Country flags as emoji-style block */
.flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
.flag__sq {
  width: 14px; height: 10px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #ae1c28 33%, #fff 33% 66%, #21468b 66%);
  border: 1px solid rgba(0,0,0,.07);
}
.flag--de .flag__sq { background: linear-gradient(to bottom, #000 33%, #DD0000 33% 66%, #FFCE00 66%); }
.flag--be .flag__sq { background: linear-gradient(to right, #000 33%, #FAE042 33% 66%, #ED2939 66%); }
.flag--fr .flag__sq { background: linear-gradient(to right, #002395 33%, #fff 33% 66%, #ED2939 66%); }

/* Scrollbar polish (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c8d4d8; border: 2px solid var(--bg); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #a5b4ba; }
::-webkit-scrollbar-track { background: transparent; }
