/* Strony wejścia katalogu Iwela (iwelo.pl) — jeden mały arkusz, bez zasobów z zewnątrz.
   Marka i kierunek A jak w aplikacji (apps/web/src/ui/theme.ts): grafitowy granat, zielony sygnał,
   Inter, miękkie karty. Jasny i ciemny motyw wg ustawienia systemu. */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --ground: #f2f4f6;
  --surface: #ffffff;
  --ink: #17222e;
  --ink-2: #4a5a69;
  --line: #e3e7eb;
  --field: #f5f7f9;
  --field-line: #7a8998;
  --action: #1a7a43;
  --action-hover: #176b3b;
  --on-action: #ffffff;
  --link: #1a7a43;
  --focus: #1a7a43;
  --tint: #e4f5eb;
  --tint-ink: #145e35;
  --warn-bg: #fff4da;
  --warn-ink: #7a4f00;
  --rail-top: #1a2633;
  --rail-bottom: #141e29;
  --rail-text: #c5cfd8;
  --shadow: 0 1px 2px rgba(23, 34, 46, 0.04), 0 10px 30px -10px rgba(23, 34, 46, 0.1);
  --sans: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #111416;
    --surface: #17222e;
    --ink: #edf1f3;
    --ink-2: #a9b6c2;
    --line: #2a3744;
    --field: #111a24;
    --field-line: #7f8fa0;
    --action: #2bbf6a;
    --action-hover: #4fd68a;
    --on-action: #0b1a12;
    --link: #4fd68a;
    --focus: #2bbf6a;
    --tint: #163a29;
    --tint-ink: #8ee8b4;
    --warn-bg: #3a2c0c;
    --warn-ink: #f3cf85;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}
.rail {
  display: flex;
  align-items: center;
  padding: max(18px, env(safe-area-inset-top)) 20px 22px;
  background: linear-gradient(180deg, var(--rail-top), var(--rail-bottom));
  color: var(--rail-text);
}
.rail img {
  display: block;
  height: 28px;
  width: auto;
}
.rail p {
  display: none;
  margin: 0;
}
main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 16px 32px;
}
.card {
  width: 100%;
  max-width: 440px;
  padding: 24px 20px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px var(--line);
}

h1 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
h2 {
  margin: 28px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}
p {
  margin: 0 0 16px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.lead {
  margin-bottom: 20px;
}
.hint {
  margin: 20px 0 0;
  font-size: 14px;
}
.company {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}
input[type='email'] {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--field-line);
  color: var(--ink);
  font: inherit;
}
input[type='email']::placeholder {
  color: var(--ink-2);
}

.btn,
.row,
.btn-quiet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.btn {
  background: var(--action);
  color: var(--on-action);
}
.btn:hover {
  background: var(--action-hover);
}
.row {
  justify-content: space-between;
  text-align: left;
  background: var(--field);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.row:hover {
  box-shadow: inset 0 0 0 1px var(--field-line);
}
.btn-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--field-line);
}
.btn-quiet:hover {
  background: var(--field);
}
.list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.list form {
  margin: 0;
}
.sep {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.icon {
  flex: none;
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--tint-ink);
}
.badge.warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.badge .icon {
  width: 26px;
  height: 26px;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}
.btn:focus-visible,
.row:focus-visible,
.btn-quiet:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .shell {
    grid-template-columns: 440px minmax(0, 1fr);
    grid-template-rows: none;
  }
  .rail {
    position: sticky;
    top: 0;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    padding: 48px;
  }
  .rail img {
    height: 34px;
  }
  .rail p {
    display: block;
    margin-top: auto;
    font-size: 14px;
    color: var(--rail-text);
  }
  main {
    justify-content: center;
    padding: 40px;
  }
  .card {
    padding: 36px;
    border-radius: 22px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  .row,
  .btn-quiet {
    transition:
      background-color 0.15s ease,
      box-shadow 0.15s ease;
  }
}
.sep .hint {
  margin: 0 0 12px;
}
