/* Friendsheet landing page — palette and type follow docs/friendsheet_design_brief.md */
:root {
  --green: #43a047;
  --green-light: #76d275;
  --green-dark: #2e7d32;
  --amber: #ffb300;
  --surface: #fafaf7;
  --on-surface: #1c1b1f;
  --muted: #5f5a52;
  --subtle: #f0ede8;
  --card: #ffffff;
  --shadow-1: 0 2px 8px rgba(28, 27, 31, 0.08);
  --shadow-2: 0 4px 16px rgba(28, 27, 31, 0.12);
  --radius-card: 16px;
  --radius-btn: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

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

a { color: var(--green-dark); }

/* Language switching: only the active language's spans are shown. */
html[data-lang='en'] [lang='pl'],
html[data-lang='pl'] [lang='en'] { display: none; }

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

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--on-surface);
  text-decoration: none;
}

.brand img { width: 40px; height: 40px; border-radius: 10px; }

.lang-switch {
  display: inline-flex;
  background: var(--subtle);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button[aria-pressed='true'] {
  background: var(--card);
  color: var(--green-dark);
  box-shadow: var(--shadow-1);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  background: #fff4d6;
  color: #8a5a00;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 16px;
}

h1 .accent { color: var(--green); }

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34ch;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.actions.center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 0 var(--green-dark);
}

.btn-primary:hover { box-shadow: 0 5px 0 var(--green-dark); }

.btn-secondary {
  background: var(--card);
  color: var(--on-surface);
  box-shadow: inset 0 0 0 2px var(--subtle);
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art .blob {
  position: absolute;
  inset: 8% 10%;
  background: radial-gradient(circle at 40% 40%, var(--green-light), var(--green));
  border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%;
  opacity: 0.25;
}

.hero-art img {
  position: relative;
  width: min(360px, 80%);
  image-rendering: auto;
}

/* Sections */
section { padding: 48px 0; }

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 8px;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 52ch;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature img { width: 64px; height: 64px; flex-shrink: 0; }

.feature h3 { font-size: 1.05rem; font-weight: 800; margin: 4px 0 4px; }

.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Privacy band */
.band {
  background: var(--green);
  color: #fff;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.band img { width: 112px; height: 112px; flex-shrink: 0; }

.band h2 { text-align: left; color: #fff; }

.band p { margin: 0; opacity: 0.92; }

/* Open source */
.oss {
  text-align: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.chips li {
  background: var(--subtle);
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--subtle);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

footer a { color: var(--muted); }

/* 404 */
.lost {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.lost img { width: 128px; height: 128px; }

.lost .actions { margin-top: 16px; }

@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 16px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(240px, 70%); }
  .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .btn { width: 100%; justify-content: center; }
  .features { grid-template-columns: 1fr; }
  .band { flex-direction: column; text-align: center; padding: 24px; }
  .band h2 { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
