:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --paper: #ffffff;
  --ink: #161a1f;
  --muted: #5b6675;
  --line: #e2e6ec;
  --accent: #2f5d7c;
  --accent-dark: #21455d;
  --accent-2: #d49a2f;
  --accent-soft: #e7eef4;
  --hero-a: rgba(231, 238, 244, 0.72);
  --hero-b: rgba(255, 255, 255, 0.94);
  --band-bg: #eef2f6;
  --phone-border: #111814;
  --header-bg: rgba(246, 247, 249, 0.92);
  --shadow: 0 24px 70px rgba(22, 26, 31, 0.16);
}

body.theme-wieviel {
  --bg: #f7f8f3;
  --ink: #17201a;
  --muted: #667064;
  --line: #dfe5da;
  --accent: #176b4d;
  --accent-dark: #0d4632;
  --accent-2: #d49a2f;
  --accent-soft: #dff1e7;
  --hero-a: rgba(223, 241, 231, 0.72);
  --hero-b: rgba(255, 255, 255, 0.94);
  --band-bg: #e7f1ea;
  --header-bg: rgba(247, 248, 243, 0.92);
  --shadow: 0 24px 70px rgba(23, 32, 26, 0.16);
}

body.theme-darts {
  color-scheme: dark;
  --bg: #0e1113;
  --paper: #171b1f;
  --ink: #f1f4f5;
  --muted: #9aa4ad;
  --line: #2a3138;
  --accent: #e23b4e;
  --accent-dark: #c22638;
  --accent-2: #18b9a6;
  --accent-soft: #1d2429;
  --hero-a: rgba(226, 59, 78, 0.16);
  --hero-b: rgba(24, 185, 166, 0.12);
  --band-bg: #14181c;
  --phone-border: #05070a;
  --header-bg: rgba(14, 17, 19, 0.86);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: clamp(36px, 6vw, 92px);
  padding: clamp(22px, 4vw, 30px) clamp(20px, 5vw, 72px) 16px;
}

.hero.solo {
  grid-template-columns: 1fr;
  max-width: 900px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 3.95rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.notice {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.phone-preview {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.phone-frame {
  width: min(100%, 320px);
  height: 430px;
  overflow: hidden;
  border: 10px solid var(--phone-border);
  border-radius: 36px;
  padding: 20px;
  background:
    linear-gradient(180deg, var(--hero-a), var(--hero-b)),
    var(--paper);
  box-shadow: var(--shadow);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.phone-status span {
  height: 7px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.85;
}

.phone-status span:first-child {
  width: 64px;
}

.phone-status span:last-child {
  width: 32px;
}

.app-card,
.metric-card,
.metric-grid > div,
.slider-row,
.result-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.intro-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.intro-card img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.intro-card strong {
  display: block;
}

.intro-card span,
.metric-card span,
.metric-grid span,
.slider-row span,
.result-list span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-card {
  margin-top: 14px;
  padding: 15px;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 1.75rem;
  line-height: 1;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.metric-grid > div {
  padding: 12px;
}

.metric-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 1.08rem;
}

.slider-row {
  margin-top: 12px;
  padding: 13px;
}

.track {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
}

.track i {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.result-list {
  margin-top: 12px;
  padding: 8px 14px;
}

.result-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.result-list p:last-child {
  border-bottom: 0;
}

.section {
  padding: clamp(34px, 7vw, 86px) clamp(20px, 5vw, 72px);
}

.section-heading {
  margin-bottom: 30px;
}

.feature-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.legal-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--paper);
}

.feature-grid p,
.legal-grid p,
.band p {
  margin: 0;
  color: var(--muted);
}

.feature-grid h3 + p,
.legal-grid h3 + p {
  margin-top: 0;
}

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 72px);
  background: var(--band-bg);
}

.band div {
  max-width: 760px;
}

.band h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.band p {
  margin-top: 12px;
  font-size: 1.05rem;
}

.legal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-grid p + p {
  margin-top: 14px;
}

.legal a,
.link-list a {
  color: var(--accent);
  font-weight: 750;
}

/* Project hub */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.project-card .card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.project-card .card-kind {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
}

.card-cta {
  margin-top: auto;
  font-weight: 800;
  color: var(--accent);
}

.project-card.is-status {
  border-style: dashed;
  opacity: 0.85;
}

.project-card.is-status .card-cta {
  color: var(--muted);
}

/* Long-form legal / document pages */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 40px) 64px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

.back-link:hover {
  color: var(--ink);
}

.doc h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.doc-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  margin: 22px 0 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.lang-switch a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
  color: var(--muted);
}

.lang-switch a[aria-current="true"] {
  background: var(--accent);
  color: #fff;
}

.nav-langs {
  display: inline-flex;
  gap: 2px;
  padding-left: 14px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}

.nav-langs a {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-langs a[aria-current="true"] {
  background: var(--accent);
  color: #fff;
}

/* App Store badge + price pill */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 28px;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 20px 0 16px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  transition: background 0.15s ease, transform 0.15s ease;
}

.appstore-badge:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.appstore-badge .apple {
  width: 26px;
  height: 32px;
  flex-shrink: 0;
}

.appstore-badge .copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.appstore-badge small {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.appstore-badge strong {
  font-size: 1.22rem;
  font-weight: 600;
}

.price-pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 58px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  line-height: 1.1;
}

.price-pill small {
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-pill strong {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 3px;
}

.app-meta {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

/* Phone frame variant: real screenshot image */
.phone-frame.is-shot {
  padding: 0;
  overflow: hidden;
  background: #000;
}

.phone-frame.is-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Screenshot strip */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.shot-frame {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 390 / 844;
  border: 8px solid var(--phone-border);
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot h3 {
  margin: 0;
  font-size: 1.05rem;
}

.shot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28ch;
}

@media (max-width: 980px) {
  .shots-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .shots-grid { grid-template-columns: 1fr; }
  .shot-frame { max-width: 220px; }
  .appstore-badge,
  .price-pill { width: 100%; justify-content: center; }
}

.doc-body {
  margin-top: 26px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.doc-body h2 {
  max-width: none;
  margin: 34px 0 12px;
  font-size: 1.3rem;
  line-height: 1.25;
}

.doc-body h2:first-child {
  margin-top: 0;
}

.doc-body h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

.doc-body p,
.doc-body li {
  color: var(--ink);
  opacity: 0.92;
}

.doc-body a {
  color: var(--accent);
  font-weight: 700;
}

.doc-body ul {
  margin: 12px 0;
  padding-left: 22px;
}

.doc-body li {
  margin: 7px 0;
}

.doc-body .address {
  margin: 12px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  font-style: normal;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer nav {
  gap: 18px;
  font-size: 0.9rem;
}

.site-footer a {
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-grid,
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: 2.7rem;
  }

  .actions,
  .actions .button {
    width: 100%;
  }

  .phone-preview {
    display: none;
  }

  .projects-grid,
  .feature-grid,
  .legal-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* Blizn document readability */
.doc-body {overflow-wrap:anywhere;}
.doc h1 {overflow-wrap:normal;}
.doc-body code {font-size:.9em;}
@media(max-width:400px){.doc h1{font-size:1.9rem;}.doc-body{padding:20px 16px;}}
