/* ==========================================================================
   egydan.com — EgyDan ApS / TaxaBog
   Layout: one 1080px column; the hero pairs the pitch with a shift slip
   (vagtseddel), the only boxed object on the page. Everything else is
   type and rhythm. Taxi yellow is the roof sign: used sparingly as a fill.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #eef0f2;          /* asphalt, light */
  --surface: #ffffff;
  --ink: #16191d;
  --muted: #545b63;
  --line: #d3d8dd;
  --signal: #ffb800;      /* taxi roof sign */
  --signal-ink: #16191d;
  --good: #16794a;

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2.1rem, 4.6vw, 3.4rem);

  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111316;
    --surface: #1a1d21;
    --ink: #eef0f2;
    --muted: #9ba2aa;
    --line: #2b3036;
    --signal: #ffb800;
    --signal-ink: #111316;
    --good: #4cc38a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111316;
  --surface: #1a1d21;
  --ink: #eef0f2;
  --muted: #9ba2aa;
  --line: #2b3036;
  --signal: #ffb800;
  --signal-ink: #111316;
  --good: #4cc38a;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img { max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: var(--step--1);
  font-weight: 600;
}
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---------- hero ---------- */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding-block: 64px 72px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
h1 {
  font-family: var(--display);
  font-weight: 750;
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hl {
  background: linear-gradient(transparent 58%, var(--signal) 58%, var(--signal) 92%, transparent 92%);
  padding-inline: 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 30px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--step--1);
  text-decoration: none;
  border: 1.5px solid var(--ink);
}
.btn-primary { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.status {
  margin: 22px 0 0;
  font-size: var(--step--1);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  flex: none;
}

/* ---------- the shift slip ---------- */

.slip {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.9rem;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.35);
  transform: rotate(1.2deg);
  max-width: 380px;
  justify-self: center;
  width: 100%;
}
.slip::after {           /* tear-off edge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 8px;
  background:
    radial-gradient(circle at 7px 0, var(--bg) 5px, transparent 5.5px) 0 0 / 14px 8px repeat-x;
}
.slip-head {
  background: var(--signal);
  color: var(--signal-ink);
  padding: 10px 18px;
  border-radius: 5px 5px 0 0;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.slip-body { padding: 16px 18px 22px; display: grid; gap: 14px; }
.slip-meta { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.slip dl { margin: 0; display: grid; gap: 7px; }
.slip .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.slip dt { color: var(--muted); }
.slip dd { margin: 0; font-weight: 500; text-align: right; }
.slip .rule { border-top: 1px dashed var(--line); }
.slip .total dt, .slip .total dd { color: var(--ink); font-weight: 500; }
.slip .total dd { font-size: 1.05rem; }
.slip .wait dd { color: var(--good); }
.slip-foot { color: var(--muted); font-size: 0.74rem; line-height: 1.5; }

/* ---------- sections ---------- */

section { padding-block: 72px; border-top: 1px solid var(--line); }
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.section-intro { color: var(--muted); max-width: 38em; margin: 0 0 40px; }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
}
.feature h3 {
  font-family: var(--display);
  font-weight: 650;
  font-size: var(--step-1);
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}
.feature p { margin: 0; color: var(--muted); max-width: 32em; }

.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 14px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-weight: 500;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}
.steps strong { display: block; font-weight: 700; }
.steps span { color: var(--muted); }

.rules { overflow-x: auto; }
.rules table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.rules caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
}
.rules th, .rules td { text-align: left; padding: 12px 10px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.rules th { font-family: var(--mono); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rules td { color: var(--muted); }
.rules .paid { color: var(--good); font-weight: 600; }

.about { max-width: 42em; }
.about p { margin: 0 0 16px; }
.about p:last-child { margin: 0; }

.contact-mail {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: -0.01em;
  word-break: break-word;
}
.contact-mail a { text-decoration-color: var(--signal); text-decoration-thickness: 3px; }
.contact-grid { display: grid; gap: 10px; }
.contact-grid p { margin: 0; color: var(--muted); }

/* ---------- legal pages ---------- */

.legal .wrap { padding-block: 56px 80px; }
.prose { max-width: 44em; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: var(--step-1); margin: 40px 0 10px; }
.prose h3 { font-size: var(--step-0); margin: 24px 0 6px; font-weight: 700; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin: 12px 0 20px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; }
.table-scroll { overflow-x: auto; }
.back { display: inline-block; margin-bottom: 28px; font-size: var(--step--1); color: var(--muted); }

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

.site-footer { border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px 36px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- small screens ---------- */

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 44px 56px; }
  .slip { transform: none; }
  .features, .how { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  section { padding-block: 56px; }
}

@media (prefers-reduced-motion: no-preference) {
  .slip { transition: transform 0.4s ease; }
  .slip:hover { transform: rotate(0deg); }
}
