/* spadesk.pl — the public website (landing and legal pages). Plain CSS, no build step. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/site/fonts/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;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/site/fonts/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;
}

:root {
  color-scheme: light;
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #1c1a30;
  --muted: #5a5873;
  --faint: #8a88a3;
  --line: #e4e3ef;
  --primary: #5553d2;
  --primary-hover: #4644bd;
  --primary-soft: #eeedfc;
  --teal: #0f9488;
  --ink: #17163a;
  --radius: 14px;
  --shadow-card: 0 1px 2px rgb(28 26 48 / 0.04), 0 8px 24px -12px rgb(28 26 48 / 0.12);
  --shadow-shot: 0 2px 6px rgb(40 36 120 / 0.06), 0 30px 70px -24px rgb(40 36 120 / 0.32);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  left: 12px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(247 247 251 / 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 32px;
  height: 32px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
}
.nav a:hover {
  color: var(--text);
  background: rgb(85 83 210 / 0.07);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
}
.lang:hover {
  color: var(--text);
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.btn-sm {
  height: 38px;
  padding: 0 15px;
  font-size: 0.9rem;
  border-radius: 10px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow:
    0 1px 2px rgb(40 36 120 / 0.2),
    inset 0 1px 0 rgb(255 255 255 / 0.14);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: #cfcde3;
  background: #fbfbff;
}
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  color: var(--ink);
  background: #f1f0ff;
}
.btn-outline-light {
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.4);
}
.btn-outline-light:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
}
.btn svg {
  width: 18px;
  height: 18px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero::before {
  width: 620px;
  height: 620px;
  top: -260px;
  left: -160px;
  background: rgb(85 83 210 / 0.16);
}
.hero::after {
  width: 560px;
  height: 560px;
  top: 40px;
  right: -220px;
  background: rgb(15 148 136 / 0.12);
}
.hero-text {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 550;
  box-shadow: var(--shadow-card);
}
.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgb(15 148 136 / 0.15);
}
h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.35rem, 5.4vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 750;
  color: var(--ink);
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary), #8b5cf6 55%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 0 auto;
  max-width: 680px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.ticks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ticks svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
  flex: none;
}

.hero-shot {
  position: relative;
  margin: 56px auto 0;
  max-width: 1100px;
}
.window {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid #dddcec;
  box-shadow: var(--shadow-shot);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  background: #fbfbfe;
  border-bottom: 1px solid var(--line);
}
.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e0dfee;
}
.window-bar .address {
  width: auto;
  height: 22px;
  margin: 0 auto;
  padding: 0 14px;
  border-radius: 7px;
  background: #f1f0f8;
  color: var(--faint);
  font-size: 0.75rem;
  line-height: 22px;
}
.hero-shot .window {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}
.hero-fade {
  height: 1px;
  background: var(--line);
}

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

section {
  padding: 96px 0;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 720;
  color: var(--ink);
}
h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--ink);
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.features {
  display: grid;
  gap: 104px;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 64px;
}
.feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.flip .feature-text {
  order: 2;
}
.feature-text p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.04rem;
}
.checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97rem;
}
.checks svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}
.shot {
  border-radius: 14px;
  border: 1px solid #dddcec;
  background: var(--surface);
  box-shadow: var(--shadow-shot);
  overflow: hidden;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.card h4 {
  margin: 16px 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}
.icon svg {
  width: 21px;
  height: 21px;
}
.icon.teal {
  background: rgb(15 148 136 / 0.1);
  color: var(--teal);
}

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dark {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #d9d8f3;
}
.dark::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: rgb(85 83 210 / 0.35);
  filter: blur(120px);
  pointer-events: none;
}
.dark h2,
.dark h4 {
  color: #fff;
}
.dark .eyebrow {
  color: #a5b4fc;
}
.dark .section-head p {
  color: #b9b8dc;
}
.safe {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.safe .card {
  background: rgb(255 255 255 / 0.05);
  border-color: rgb(255 255 255 / 0.1);
  box-shadow: none;
}
.safe .card p {
  color: #b9b8dc;
}
.safe .icon {
  background: rgb(165 180 252 / 0.14);
  color: #c7d2fe;
}
.dark a {
  color: #c7d2fe;
}

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 620;
  font-size: 1.04rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.cta {
  padding: 0 0 96px;
}
.cta-box {
  position: relative;
  overflow: hidden;
  padding: 64px 48px;
  border-radius: 24px;
  text-align: center;
  color: #e6e5ff;
  background:
    radial-gradient(600px 300px at 15% 0%, rgb(139 92 246 / 0.55), transparent 70%),
    radial-gradient(500px 300px at 90% 100%, rgb(15 148 136 / 0.5), transparent 70%), var(--primary);
}
.cta-box h2 {
  color: #fff;
}
.cta-box p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.08rem;
}

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

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer h5 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 650;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer .brand {
  color: var(--text);
}
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-note {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--faint);
}
.footer-about p {
  margin: 12px 0 0;
  max-width: 340px;
}

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

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}
.doc h1 {
  margin: 8px 0 8px;
  font-size: clamp(2rem, 4vw, 2.7rem);
}
.doc .updated {
  color: var(--faint);
  font-size: 0.92rem;
  margin: 0 0 36px;
}
.doc h2 {
  margin: 44px 0 12px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.doc h3 {
  margin: 28px 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.doc p,
.doc li {
  color: #3c3a55;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.doc .box {
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.doc .box p {
  margin: 4px 0;
}
.doc .other-lang {
  float: right;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .site-header .wrap {
    justify-content: space-between;
  }
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature.flip .feature-text {
    order: 0;
  }
  .grid,
  .safe {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .site-header .wrap {
    gap: 12px;
    height: 60px;
  }
  /* Phones: sign in stays in the header; signing up is the hero's big button */
  .header-actions .btn-primary {
    display: none;
  }
  .header-actions .btn-ghost {
    height: 36px;
    padding: 0 12px;
  }
  .hero {
    padding-top: 48px;
  }
  section {
    padding: 72px 0;
  }
  .features {
    gap: 72px;
  }
  .grid,
  .safe {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 44px 22px;
    border-radius: 18px;
  }
  .cta-row .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .window-bar .address {
    display: none;
  }
  .doc {
    padding: 40px 16px 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
