/* HushPDF coming-soon — design 2a/2b (Claude Design handoff)
   Tokens map to Tailwind: indigo-500 #6366F1, indigo-600 #4F46E5, slate-900 #0F172A */

/* Space Grotesk — self-hostowany (variable, wagi 500–700), privacy-first: bez Google Fonts */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin.woff2") format("woff2");
  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;
}

:root {
  --bg: #fbfbfd;
  --fg: #0f172a;
  --muted: #5b6472;
  --faint: #94a3b8;
  --card: #ffffff;
  --border: #e8eaf1;
  --input-border: #dfe2ea;
  --accent: #6366f1;
  --accent-strong: #4f46e5;
  --accent-soft: #eeeffe;
  --accent-soft-border: #dddffc;
  --ok: #067647;
  --err: #b42318;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.375rem clamp(1.375rem, 4.4vw, 3.5rem);
}
.brand { display: flex; align-items: center; gap: 0.625rem; }
.mark { display: block; }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}
.wordmark em { font-style: normal; color: var(--accent); }
.pill {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  padding: 0.3125rem 0.75rem;
  border-radius: 99px;
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.375rem, 4.4vw, 3.5rem);
  flex: 1;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 3.5rem;
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.375rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 780px;
  text-wrap: balance;
}
.lede {
  margin: 0;
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 600px;
  text-wrap: pretty;
}

.form {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.625rem;
  width: 460px;
  max-width: 100%;
}
.form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.8125rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  outline: none;
}
.form input[type="email"]:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.form button {
  padding: 0.8125rem 1.375rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.form button:hover { background: var(--accent-strong); }
.form button:active { transform: translateY(1px); }
.form button:disabled { opacity: 0.6; cursor: default; }

.msg { margin: 0; min-height: 1.25rem; font-size: 0.875rem; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }
.fineprint { margin: -0.5rem 0 0; font-size: 0.8125rem; color: var(--faint); }

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 2.25rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 4rem;
  padding: 1.125rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.trust span {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  color: #475569;
}
.trust i { font-style: normal; color: #d6d9e4; }

.peeks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 4rem;
}
.peek {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.peek-head { display: flex; align-items: center; gap: 0.875rem; min-height: 64px; }
.peek-tag {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.peek h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}
.peek p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.peek code { font-family: var(--mono); color: var(--accent-strong); }

.qr {
  width: 64px;
  height: 64px;
  flex: none;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
}
.qr b { background: var(--fg); border-radius: 2px; }
.qr b.c { background: var(--accent); }
.qr s { text-decoration: none; }

.linkdemo {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  background: #f4f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
  white-space: nowrap;
}
.linkdemo u {
  text-decoration: none;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 4px;
  padding: 2px 4px;
}

.foot {
  text-align: center;
  padding: 1.25rem clamp(1.375rem, 4.4vw, 3.5rem);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--faint);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Tablet / small windows */
@media (max-width: 860px) {
  .peeks { grid-template-columns: 1fr; }
  .peek-head { min-height: 0; }
  .trust { gap: 0.75rem 1.5rem; padding: 1rem 1.5rem; }
}

/* Mobile — design 2b */
@media (max-width: 600px) {
  .hero { text-align: left; align-items: flex-start; padding-top: 2.5rem; }
  h1 { font-size: 2rem; line-height: 1.12; letter-spacing: -0.02em; }
  .form { flex-direction: column; width: 100%; }
  .form input[type="email"] { font-size: 1rem; padding: 0.875rem 1rem; }
  .form button { font-size: 1rem; padding: 0.875rem; }
  .trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 1.125rem 1.375rem;
    margin-bottom: 2.25rem;
    border: none;
    background: none;
    padding-left: 0;
  }
  .trust i { display: none; }
  .peeks { grid-template-columns: 1fr; padding-bottom: 2.25rem; }
  .foot { text-align: left; }
}
