/* ==========================================================================
   Mamod2003 — design tokens
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #f6f8fb;
  --bg-elev: #ffffff;
  --bg-sunken: #f1f4f9;
  --bg-inset: #e9eef5;

  --text: #0b1524;
  --text-dim: #5b6b80;
  --text-faint: #8496a9;

  --border: #e4e9f0;
  --border-strong: #cfd8e3;

  --accent: #0e9f79;
  --accent-hover: #0b8664;
  --accent-soft: #e6f6f1;
  --accent-ink: #076149;
  --accent-ring: rgba(14, 159, 121, .22);

  --brand-2: #4f46e5;

  --warn: #a35a06;
  --warn-soft: #fdf3e3;
  --warn-line: #f0d9b2;

  --danger: #c0392b;
  --danger-soft: #fdeeec;
  --danger-line: #f3cfc9;

  --shadow-sm: 0 1px 2px rgba(11, 21, 36, .05);
  --shadow-md: 0 2px 4px rgba(11, 21, 36, .04), 0 8px 20px rgba(11, 21, 36, .06);
  --shadow-lg: 0 4px 12px rgba(11, 21, 36, .06), 0 24px 48px rgba(11, 21, 36, .09);

  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --maxw: 1060px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #080b11;
  --bg-elev: #111823;
  --bg-sunken: #0d131c;
  --bg-inset: #161f2b;

  --text: #e9eff7;
  --text-dim: #94a5b9;
  --text-faint: #6d8098;

  --border: #1e2835;
  --border-strong: #2d3a4a;

  --accent: #2ecfa3;
  --accent-hover: #4fdfb8;
  --accent-soft: #0e2b24;
  --accent-ink: #7cebcb;
  --accent-ring: rgba(46, 207, 163, .25);

  --brand-2: #8b9dff;

  --warn: #f0b13f;
  --warn-soft: #2c2312;
  --warn-line: #4a3a17;

  --danger: #ff8d80;
  --danger-soft: #2d1815;
  --danger-line: #4d2721;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 10px 26px rgba(0, 0, 0, .35);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, .45), 0 28px 60px rgba(0, 0, 0, .45);
}

/* ==========================================================================
   base
   ========================================================================== */

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

/* Classes that set `display` would otherwise beat the browser's [hidden] rule,
   leaving empty pills on screen before their data arrives. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[dir="rtl"] body {
  font-family: Inter, "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
}

::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }

a { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.svg-defs { display: none; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

.muted { color: var(--text-dim); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .93em; letter-spacing: .01em; }

/* ==========================================================================
   header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner { display: flex; align-items: center; gap: 14px; min-height: 66px; }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: inherit;
  margin-inline-end: auto; border-radius: var(--r-md);
}

.brand-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px; display: block;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.brand-text small { color: var(--text-faint); font-size: 11.5px; font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 8px; }

/* status pill */

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding-inline: 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-ring); animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 var(--accent-ring); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}
.status-pill.is-rest { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.status-pill.is-rest .dot { background: var(--warn); animation: none; }

/* control buttons */

.lang-btn, .icon-btn {
  height: 36px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--bg-elev); color: var(--text);
  font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.lang-btn:hover, .icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.icon-btn { width: 36px; font-size: 17px; }
.icon-btn .icon-sun { display: none; }
:root[data-theme="dark"] .icon-btn .icon-sun { display: block; }
:root[data-theme="dark"] .icon-btn .icon-moon { display: none; }

/* language picker */

.lang-picker { position: relative; }

.lang-btn { gap: 7px; padding-inline: 11px; font-size: 13.5px; font-weight: 600; }
.lang-btn > .icon:first-child { font-size: 15px; color: var(--text-faint); }
.lang-btn:hover > .icon:first-child { color: inherit; }
.lang-btn .caret { font-size: 13px; transition: transform .18s var(--ease); }
.lang-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.lang-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  z-index: 60; margin: 0; padding: 6px; list-style: none;
  min-width: 190px; max-height: min(60vh, 380px); overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  animation: pop .16s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.lang-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.lang-menu li:hover, .lang-menu li.is-focus { background: var(--bg-sunken); }
.lang-menu li[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.lang-menu li .tick { margin-inline-start: auto; font-size: 15px; opacity: 0; }
.lang-menu li[aria-selected="true"] .tick { opacity: 1; }
.lang-menu li .sub { color: var(--text-faint); font-size: 12px; font-weight: 400; }

/* ==========================================================================
   hero
   ========================================================================== */

.hero { position: relative; padding: 58px 0 36px; text-align: center; overflow: hidden; }

.hero-glow {
  position: absolute; inset-inline-start: 50%; top: -220px;
  width: 760px; height: 460px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(18px); pointer-events: none;
}
:root[data-theme="dark"] .hero-glow { opacity: .55; }

.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: 12.5px; font-weight: 600;
}

.hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 5.6vw, 52px);
  font-weight: 800; letter-spacing: -.035em;
}

.hero-sub {
  margin: 0 auto; max-width: 600px;
  color: var(--text-dim); font-size: 17px;
}

.trust-row {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 9px;
}
.trust-row li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 500; color: var(--text-dim);
}
.trust-row .icon { font-size: 14px; color: var(--accent); }

.avg-line { margin: 22px 0 0; font-size: 13.5px; color: var(--text-dim); }

.rate-line {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 12px 0 0; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: 13px; font-weight: 600;
}
.rate-line .icon { font-size: 15px; }
.avg-line strong { color: var(--accent); margin-inline: 6px; font-weight: 700; }

/* ==========================================================================
   card + tabs
   ========================================================================== */

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 44px;
}

.tabs {
  display: flex; gap: 4px; padding: 6px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--border);
}

.tab {
  flex: 1; min-width: 0;
  padding: 11px 14px; border: 0; border-radius: var(--r-sm);
  background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
}
.tab:hover { color: var(--text); background: color-mix(in srgb, var(--bg-elev) 60%, transparent); }
.tab.is-active {
  color: var(--accent); background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}

.panel { display: none; padding: 34px 32px 38px; }
.panel.is-active { display: block; animation: rise .26s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.panel h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.lede { margin: 0 0 26px; color: var(--text-dim); font-size: 14.5px; }

/* ==========================================================================
   stepper
   ========================================================================== */

.stepper {
  list-style: none; display: flex; align-items: center;
  margin: 0 0 32px; padding: 0; gap: 10px;
}
.stepper li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-faint);
  transition: color .2s var(--ease);
}
.stepper li:not(:last-child) { flex: 1; min-width: 0; }
.stepper li:not(:last-child)::after {
  content: ""; flex: 1; min-width: 12px; height: 2px; border-radius: 2px;
  background: var(--border-strong);
  transition: background .3s var(--ease);
}
.stepper .step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bubble {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700;
  background: var(--bg-sunken); color: var(--text-faint);
  border: 1.5px solid var(--border-strong);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.stepper li.is-active { color: var(--text); }
.stepper li.is-active .bubble {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.stepper li.is-done { color: var(--text-dim); }
.stepper li.is-done .bubble { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.stepper li.is-done::after { background: var(--accent); }

.step { display: none; }
.step.is-active { display: block; animation: rise .24s var(--ease); }

/* ==========================================================================
   forms
   ========================================================================== */

.field { display: block; margin-bottom: 20px; }

.field-label {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13.5px; font-weight: 600; margin-bottom: 8px;
}
.field-label em {
  font-style: normal; font-weight: 500; font-size: 11.5px;
  color: var(--text-faint); text-transform: lowercase;
  padding: 1px 7px; border-radius: 999px; background: var(--bg-inset);
}

input[type="text"], input[type="email"], textarea {
  display: block; width: 100%;
  padding: 12px 14px;
  background: var(--bg-sunken); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  font: inherit; font-size: 15px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }

textarea {
  resize: vertical; min-height: 96px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.6;
}
#codeInput {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em; text-transform: uppercase; font-size: 15.5px;
}

input:focus, textarea:focus {
  outline: none; background: var(--bg-elev);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

html[dir="rtl"] textarea,
html[dir="rtl"] #codeInput,
html[dir="rtl"] input[type="email"] { direction: ltr; text-align: start; }

.hint { display: block; margin-top: 8px; font-size: 12.5px; color: var(--text-faint); line-height: 1.55; }
.hint code {
  padding: 1px 5px; border-radius: 5px; background: var(--bg-inset);
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px;
}

.warn {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 20px 0; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--warn-soft); border: 1px solid var(--warn-line);
  color: var(--warn); font-size: 13px; line-height: 1.55;
}
.warn .icon { font-size: 16px; margin-top: 2px; }

.callout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 16px; margin-bottom: 22px;
  background: var(--bg-sunken); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.callout-note { flex: 1; min-width: 190px; font-size: 12.5px; color: var(--text-dim); }

.plan-badge {
  display: inline-flex; align-items: center; margin-bottom: 16px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: 13px; font-weight: 600;
}
.plan-badge:empty { display: none; }

/* ==========================================================================
   buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: var(--r-md);
  font: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), transform .12s var(--ease), box-shadow .16s var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(1px); }

.btn.primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn.primary:hover:not(:disabled) {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 38%, transparent);
}

.btn.ghost { background: var(--bg-elev); border-color: var(--border-strong); color: var(--text); }
.btn.ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn.warn-btn { background: var(--warn); color: #fff; }
.btn.warn-btn:hover:not(:disabled) { filter: brightness(1.08); }

.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.is-loading::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   messages
   ========================================================================== */

.msg {
  margin: 0 0 18px; padding: 12px 15px; border-radius: var(--r-md);
  font-size: 13.5px; line-height: 1.55; border: 1px solid transparent;
  animation: rise .2s var(--ease);
}
.msg.error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.msg.ok { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.msg.info { background: var(--bg-sunken); color: var(--text-dim); border-color: var(--border); }
.msg .hint { color: inherit; opacity: .72; }

/* ==========================================================================
   review list
   ========================================================================== */

.review {
  margin: 0 0 24px; padding: 0;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; background: var(--bg-sunken);
}
.review > div {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.review > div:last-child { border-bottom: 0; }
.review dt { margin: 0; flex: 0 0 190px; font-size: 13.5px; color: var(--text-dim); }
.review dd { margin: 0; flex: 1; min-width: 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }

/* ==========================================================================
   order status
   ========================================================================== */

.order-state { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.order-copy h2 { margin: 0 0 4px; }
.order-copy .lede { margin: 0; }

.spinner {
  width: 28px; height: 28px; flex: none; margin-top: 3px; border-radius: 50%;
  border: 3px solid var(--border-strong); border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}
.spinner.is-done { border-color: var(--accent); animation: none; }
.spinner.is-failed { border-color: var(--danger); animation: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; border: 1px solid transparent;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.pending, .pill.processing { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.pill.success { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.pill.failed, .pill.disabled { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.pill.active, .pill.unknown { background: var(--bg-inset); color: var(--text-dim); border-color: var(--border); }

.verify-box {
  margin: 0 0 24px; padding: 18px; border-radius: var(--r-lg);
  background: var(--warn-soft); border: 1px solid var(--warn-line);
}
.verify-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; color: var(--warn); }
.verify-head .icon { font-size: 17px; }
.verify-head strong { font-size: 14.5px; }
.verify-box p { margin: 0 0 14px; font-size: 13.5px; color: var(--text); }
.verify-box .hint { margin-top: 10px; }

/* ==========================================================================
   release / replace
   ========================================================================== */

.release-box {
  margin: 0 0 24px; padding: 18px; border-radius: var(--r-lg);
  background: var(--bg-sunken); border: 1px solid var(--border);
}
.release-box > strong { display: block; margin-bottom: 6px; font-size: 14.5px; }
.release-box > p { margin: 0 0 14px; font-size: 13.5px; color: var(--text-dim); }

.inline-form { flex-basis: 100%; }
.inline-form .field { margin-bottom: 14px; }
.inline-form > p:first-child { margin: 0 0 12px; }

.btn.small { padding: 7px 14px; font-size: 13px; border-radius: var(--r-sm); }

.new-code {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 12px; padding: 13px 15px; border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.new-code-label { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.new-code-value {
  flex: 1; min-width: 150px; font-size: 15px; font-weight: 700;
  letter-spacing: .05em; color: var(--text); overflow-wrap: anywhere;
}

/* ==========================================================================
   track results
   ========================================================================== */

.track-results { margin-top: 24px; display: grid; gap: 10px; }
.track-results:empty { margin-top: 0; }

.track-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--bg-sunken); border: 1px solid var(--border);
  animation: rise .2s var(--ease);
}
.track-row .code {
  margin-inline-end: auto;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.track-row .detail { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--text-dim); }
.track-actions { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   billing
   ========================================================================== */

.billing-result:empty { display: none; }
.billing-result { margin-top: 26px; }

.billing-heading { margin: 26px 0 12px; font-size: 15.5px; font-weight: 700; }

.invoice-list { display: grid; gap: 8px; }
.invoice-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 15px; border-radius: var(--r-md);
  background: var(--bg-sunken); border: 1px solid var(--border);
  font-size: 13.5px;
}
.invoice-date { font-weight: 600; min-width: 96px; }
.invoice-desc { flex: 1; min-width: 120px; color: var(--text-dim); }
.invoice-amount { font-weight: 600; }
.invoice-link { font-size: 13px; font-weight: 600; text-decoration: none; }
.invoice-link:hover { text-decoration: underline; }

/* ==========================================================================
   guide
   ========================================================================== */

.guide-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(282px, 1fr)); }

.guide-card {
  padding: 22px; border-radius: var(--r-lg);
  background: var(--bg-sunken); border: 1px solid var(--border);
}
.guide-card h3 { margin: 0 0 14px; font-size: 15.5px; font-weight: 700; }

.guide-list { margin: 0; padding: 0; list-style: none; counter-reset: gstep; }
.guide-list li {
  position: relative; counter-increment: gstep;
  padding-inline-start: 32px; margin-bottom: 12px;
  font-size: 13.5px; line-height: 1.55;
}
.guide-list li::before {
  content: counter(gstep);
  position: absolute; inset-inline-start: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 11.5px; font-weight: 700;
}

.code-sample {
  margin: 16px 0 12px; padding: 14px; border-radius: var(--r-md);
  background: var(--bg-elev); border: 1px solid var(--border);
  overflow-x: auto; direction: ltr; text-align: left;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px; line-height: 1.65; color: var(--text-dim);
}

.faq { margin: 0; }
.faq dt { margin-top: 14px; font-size: 13.5px; font-weight: 600; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 5px 0 0; font-size: 13px; color: var(--text-dim); line-height: 1.55; }

/* ==========================================================================
   footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 34px;
  background: var(--bg-elev);
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 12.5px; color: var(--text-faint);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 760px) {
  .hero { padding: 36px 0 26px; }
  .hero-sub { font-size: 15.5px; }
  .panel { padding: 24px 18px 28px; }
  .card { border-radius: var(--r-lg); margin-bottom: 32px; }

  .header-inner { flex-wrap: wrap; min-height: 0; padding-block: 10px; gap: 10px; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .status-pill { order: 3; flex-basis: 100%; justify-content: center; }
  .brand-text small { display: none; }

  .tab { padding: 10px 6px; font-size: 13px; }

  .stepper { gap: 6px; }
  .stepper .step-label { display: none; }
  .stepper li:not(:last-child)::after { min-width: 8px; }

  .review dt { flex-basis: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* Four tabs share a phone's width. Long labels — "Bestellung verfolgen" —
   wrap onto a second line rather than being cut off. */
@media (max-width: 440px) {
  .tabs { gap: 2px; padding: 5px; align-items: stretch; }
  .tab {
    padding: 9px 4px; font-size: 12px; letter-spacing: -.01em;
    white-space: normal; text-overflow: clip; line-height: 1.3;
    display: flex; align-items: center; justify-content: center;
  }
}

@media (max-width: 400px) {
  .lang-btn span { display: none; }
  .lang-btn { width: 36px; padding-inline: 0; gap: 0; }
  .lang-btn .caret { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
