/* Oderland verktyg — gemensam design */

:root {
  --red: #cc2027;
  --red-light: #ff6b5c;
  --ok: #2f8a4a;
  --warn: #b8853a;
  --red-deep: #a8191f;
  --red-dark: #8a1319;
  --bg: #f6f3ee;
  --bg-2: #ebe6dc;
  --ink: #1c1917;
  --muted: #5c574e;
  --line: #e4ddd3;
  --card: #fffdf9;
  --font-display: "JetBrains Mono", ui-monospace, monospace;
  --font-body: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

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

.banner {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 1.25rem;
}

.banner a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo .dot {
  color: var(--red);
}

nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

nav a:hover {
  color: var(--red);
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.hero {
  margin-bottom: 2rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.accent {
  color: var(--red);
}

.hero p {
  color: var(--muted);
  max-width: 42rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  min-width: 0;
}

.tool-card.proto {
  border-color: #ead9d4;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.badge {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.badge.alt {
  background: var(--red);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(47, 138, 74, 0.15);
  flex-shrink: 0;
}

.led.off {
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(92, 87, 78, 0.12);
}

.proto-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  word-break: break-word;
}

.hint {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.field {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  margin-top: 0.55rem;
}

.field:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.btn:hover {
  background: var(--red-dark);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.ghost:hover {
  background: var(--bg-2);
  color: var(--red-dark);
}

.details {
  margin: 2rem 0;
}

.details h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.details dl {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.details .row {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
}

.details .row:first-child {
  border-top: 0;
}

.details dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.details dd {
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.api-section {
  background: var(--ink);
  color: #f4f1ea;
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
}

.api-section h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.api-section p {
  color: #cfc8bb;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.api-section pre {
  background: #111;
  color: #e8e0d4;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.45;
  font-family: var(--font-display);
}

.info-section {
  margin: 2.5rem 0;
}

.info-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.info-body {
  color: var(--muted);
}

.info-body p {
  margin-bottom: 0.7rem;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  background: var(--card);
}

.by-oderland {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.oderland-logo {
  display: inline-flex;
  align-items: center;
  height: 18px;
  overflow: visible;
}

.oderland-logo svg {
  height: 18px;
  width: auto;
  display: block;
  overflow: visible;
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .details .row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
