/* ---------------------------------------------------------------------------
   Polly — polly.mierzwa.net
   Design tokens taken from the Claude Design source ("Polly Landing.dc.html").
   Fonts are self-hosted on purpose: embedding fonts.gstatic.com would send
   every visitor's IP to Google, which German courts have held to be an
   unlawful transfer under the GDPR (LG Munchen I, 20.01.2022, 3 O 17493/20).
--------------------------------------------------------------------------- */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/nunito-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;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin-ext.woff2') format('woff2');
  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 {
  --cream: #faf7ef;
  --ink: #3e2440;
  --ink-deep: #2c1730;
  --muted: #6b5a66;
  --muted-soft: #8a7c86;
  --muted-faint: #9a8b95;
  --gold: #ffd84d;
  --gold-hot: #ffce22;
  --gold-deep: #c9a227;
  --gold-link: #8a6a1e;
  --hair: rgba(62, 36, 64, 0.08);
  --hair-soft: rgba(62, 36, 64, 0.07);
  --shell: 1100px;
  --measure: 940px;
  --prose: 720px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Nunito, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--gold-link); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--cream); }

/* --- decorative pollen field ------------------------------------------- */

.pollen-field {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.pollen-field__inner {
  position: absolute;
  /* Overscan has to exceed the maximum parallax travel (PARALLAX in
     pollen.js, currently 3 => up to 39px) or the drifting field pulls an
     empty band in at the edge on narrow windows. */
  inset: -8%;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.grain { position: absolute; left: 0; will-change: transform; }
.grain > i { display: block; border-radius: 50%; }

@keyframes pollenDrift {
  from { transform: translate3d(-12vw, 0, 0); }
  to   { transform: translate3d(114vw, 0, 0); }
}
@keyframes pollenBob {
  0%   { transform: translateY(-14px) scale(0.9); }
  50%  { transform: translateY(16px) scale(1.05); }
  100% { transform: translateY(-14px) scale(0.9); }
}
@keyframes floatPhone {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.page { position: relative; z-index: 1; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(250, 247, 239, 0.82);
  border-bottom: 1px solid var(--hair-soft);
}
.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; display: block; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink); }

.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.btn--gold {
  background: var(--gold);
  color: var(--ink);
  padding: 10px 18px;
  box-shadow: 0 1px 0 rgba(62, 36, 64, 0.12);
}
.btn--gold:hover { background: var(--gold-hot); color: var(--ink); }
.btn--ink {
  background: var(--ink);
  color: var(--cream);
  padding: 15px 26px;
  font-size: 16px;
}
.btn--ink:hover { background: var(--ink-deep); color: var(--cream); }
.btn--ghost {
  border: 1.5px solid rgba(62, 36, 64, 0.18);
  padding: 15px 26px;
  font-size: 16px;
  color: var(--ink);
}
.btn--ghost:hover { border-color: rgba(62, 36, 64, 0.4); color: var(--ink); }

@media (max-width: 560px) {
  .site-header__inner { padding: 12px 18px; gap: 14px; }
  .site-nav { gap: 16px; font-size: 14px; }
  .site-nav a.nav-hide { display: none; }
}

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

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 84px 28px 0;
  text-align: center;
}
.hero__icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 14px 26px rgba(201, 162, 39, 0.32));
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__sub {
  margin: 22px auto 0;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.hero__cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.device-shot {
  display: flex;
  justify-content: center;
  padding: 46px 24px 20px;
}
.device-shot img {
  width: 328px;
  max-width: 78vw;
  height: auto;
  display: block;
  animation: floatPhone 9s ease-in-out infinite;
  filter: drop-shadow(0 40px 60px rgba(62, 36, 64, 0.18));
}

/* --- feature grid ------------------------------------------------------- */

.features {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 60px 28px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 44px 40px;
}
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature__num {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
}
.feature h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.feature p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* --- band (blog teaser / generic tinted section) ------------------------ */

.band {
  border-top: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.5);
}
.band__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 72px 28px 84px;
}
.band__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.band__head h2 {
  margin: 0;
  font-size: clamp(26px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.band__head p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-link);
}

/* --- post list ---------------------------------------------------------- */

.post-list { display: flex; flex-direction: column; }
.post-list__item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 24px;
  align-items: start;
  padding: 22px 16px 22px 0;
  border-top: 1px solid var(--hair);
  transition: background 0.16s ease;
}
.post-list__item:hover { background: rgba(255, 216, 77, 0.12); color: var(--ink); }
.post-list__date {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-faint);
  padding-top: 4px;
}
.post-list__body { display: flex; flex-direction: column; gap: 6px; }
.post-list__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.post-list__excerpt {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.more-link {
  display: inline-block;
  margin-top: 30px;
  font-weight: 700;
  color: var(--gold-link);
}
.more-link:hover { color: var(--ink); }

@media (max-width: 620px) {
  .post-list__item { grid-template-columns: 1fr; gap: 6px; }
  .post-list__date { padding-top: 0; }
}

/* --- prose (blog posts + legal documents) ------------------------------- */

.doc {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 56px 28px 40px;
}
.doc--wide { max-width: var(--measure); }

.doc h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.doc__meta {
  margin: 0 0 34px;
  font-size: 14px;
  color: var(--muted-faint);
  font-weight: 600;
}
.doc__meta a { color: var(--muted-faint); text-decoration: underline; }
.doc__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
  margin: 0 0 32px;
}

.doc h2 {
  margin: 44px 0 12px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.doc h3 {
  margin: 32px 0 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.doc p, .doc li {
  font-size: 17px;
  line-height: 1.68;
  color: #4d3a4a;
  text-wrap: pretty;
}
.doc p { margin: 0 0 18px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--gold-link); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--ink); }
.doc strong { font-weight: 800; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(255, 216, 77, 0.28);
  padding: 1px 5px;
  border-radius: 5px;
}
.doc address { font-style: normal; font-size: 17px; line-height: 1.68; }
.doc hr { border: 0; border-top: 1px solid var(--hair); margin: 44px 0; }

.doc blockquote {
  margin: 26px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
}
.doc blockquote p:last-child { margin-bottom: 0; }

.doc-figure {
  margin: 34px 0;
  text-align: center;
}
.doc-figure img {
  width: 300px;
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 30px 44px rgba(62, 36, 64, 0.16));
}
.doc-figure figcaption {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--muted-faint);
  text-wrap: pretty;
}

.callout {
  background: rgba(255, 216, 77, 0.16);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 30px 0;
}
.callout p { margin: 0; font-size: 16px; }
.callout p + p { margin-top: 10px; }
.callout strong { color: var(--ink); }

.doc details {
  margin: 12px 0;
  padding: 14px 18px;
  background: rgba(255, 216, 77, 0.16);
  border-radius: 14px;
}
.doc details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
}
.doc details[open] summary { margin-bottom: 10px; }
.doc details p:last-child { margin-bottom: 0; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 16px;
}
.doc th, .doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.doc th { font-weight: 800; }
.table-wrap { overflow-x: auto; }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 34px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-faint);
}
.lang-switch a { color: var(--gold-link); }
.lang-switch span[aria-current] { color: var(--ink); }

.post-cta {
  margin: 48px 0 0;
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.post-cta img { width: 54px; height: 54px; border-radius: 14px; display: block; }
.post-cta__text { flex: 1 1 240px; }
.post-cta__text strong { display: block; font-size: 17px; margin-bottom: 4px; }
.post-cta__text span { font-size: 15px; color: var(--muted); line-height: 1.5; }

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

.site-footer { border-top: 1px solid var(--hair); margin-top: 40px; }
.site-footer__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 34px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  font-size: 14px;
  color: var(--muted-soft);
}
.site-footer img { width: 24px; height: 24px; display: block; }
.site-footer__copy { margin-right: auto; }
.site-footer a { color: var(--muted-soft); }
.site-footer a:hover { color: var(--ink); }
.site-footer__legal {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 28px 34px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-faint);
}

/* --- motion / print ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pollen-field { display: none; }
  .device-shot img { animation: none; }
  .hero__icon { transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .pollen-field, .site-header, .post-cta { display: none; }
  body { background: #fff; }
}
