:root {
  --ink: #15151c;
  --muted: #555565;
  --line: #e4e4ec;
  --indigo: #262581;
  --indigo-soft: #ecebfa;
  --paper: #f7f7f9;
  --white: #ffffff;
  --radius: 18px;
  --header-h: 64px;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--indigo);
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  width: min(760px, 100% - 2.5rem);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  background: var(--indigo);
  color: #fff;
}

.skip:focus {
  top: 0.75rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 247, 249, 0.88);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}

.bar {
  width: min(1120px, 100% - 2rem);
  height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(21, 21, 28, 0.08);
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-nav {
  display: none;
  gap: 1.4rem;
  margin-left: auto;
}

.page-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.page-nav a:hover {
  color: var(--indigo);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.lang {
  position: relative;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 38px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-button:hover {
  border-color: #c9c8de;
}

.lang-button .chev {
  transition: transform 0.15s ease;
}

.lang-button[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 40px -12px rgba(21, 21, 28, 0.25);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.95rem;
  text-decoration: none;
}

.lang-menu a:hover,
.lang-menu a:focus-visible {
  background: var(--paper);
}

.lang-menu a[aria-current="page"] {
  background: var(--indigo-soft);
  color: var(--indigo);
  font-weight: 600;
}

.lang-menu .code {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.store-mini {
  display: none;
  align-items: center;
  height: 38px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Hero */

.hero {
  padding: 2.5rem 0 1rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.eyebrow,
.tag {
  margin: 0 0 0.9rem;
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 1.4rem + 4.4vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.dek {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: #2c2c38;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--indigo);
  font-size: 0.88rem;
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.25rem 0.6rem 1rem;
  border-radius: 14px;
  background: #0b0b10;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  transition: transform 0.15s ease, background 0.15s ease;
}

.store-button:hover {
  background: var(--indigo);
  transform: translateY(-1px);
}

.store-button small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.85;
}

.store-button strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.hero-phone {
  justify-self: center;
  width: min(300px, 78vw);
  margin: 0;
  padding: 10px;
  border-radius: 46px;
  background: #0b0b10;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -30px rgba(38, 37, 129, 0.55),
    0 18px 36px -18px rgba(21, 21, 28, 0.45);
  transform: rotate(2deg);
}

.hero-phone img {
  width: 100%;
  border-radius: 37px;
}

/* Sections */

.section {
  padding: 4rem 0 0;
}

.lead {
  max-width: 40rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.ways {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.ways h3 {
  margin-bottom: 1rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 2.6rem;
  counter-increment: step;
}

.steps li + li {
  margin-top: 0.9rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--indigo-soft);
  color: var(--indigo);
  font-size: 0.85rem;
  font-weight: 700;
}

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

/* Gallery */

.gallery-wrap {
  margin-top: 1.75rem;
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(62vw, 250px);
  gap: 1rem;
  margin: 0;
  padding: 0.5rem max(1.25rem, (100vw - 1120px) / 2) 1.25rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.25rem, (100vw - 1120px) / 2);
  scrollbar-width: thin;
}

.gallery li {
  scroll-snap-align: start;
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #0b0b10;
  box-shadow: 0 14px 30px -18px rgba(21, 21, 28, 0.55);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -20px rgba(38, 37, 129, 0.6);
}

.shot img {
  width: 100%;
  height: auto;
}

.gallery p {
  margin: 0.75rem 0.15rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* Facts */

.free {
  margin-top: 1.75rem;
  padding: clamp(1.6rem, 1rem + 3vw, 2.75rem);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 140% at 100% 0%, #4442c4 0%, transparent 55%),
    var(--indigo);
  color: #fff;
}

.free-big {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 1.6rem + 5vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.free-sub {
  max-width: 34rem;
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.45;
}

.facts {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.facts h3 {
  margin-bottom: 0.35rem;
}

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

.dev a {
  font-weight: 600;
}

/* Privacy and limits */

.split {
  display: grid;
  gap: 2.5rem;
}

.split h2 {
  margin-bottom: 1.25rem;
}

.prose p {
  margin: 0;
}

.prose p + p {
  margin-top: 0.9rem;
}

.limits {
  margin: 0;
  padding: 0.5rem 1.4rem;
  list-style: none;
}

.limits li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.8rem;
  border-top: 1px solid var(--line);
}

.limits li:first-child {
  border-top: 0;
}

.limits li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.38rem;
  width: 0.8rem;
  height: 2px;
  border-radius: 2px;
  background: #b4b3c8;
}

/* FAQ */

.faq {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 1.05rem 3.25rem 1.05rem 1.35rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--indigo);
  border-bottom: 2px solid var(--indigo);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--indigo);
}

.faq-item summary:focus-visible {
  outline-offset: -3px;
}

.faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.2rem;
  color: var(--muted);
}

/* About */

.quote {
  margin: 1.5rem 0 2rem;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--indigo);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
}

.quote p {
  margin: 0;
}

/* Footer */

.site-footer {
  margin-top: 5rem;
  padding: 1.75rem 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.imprint h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.imprint address {
  margin-top: 1.75rem;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.55;
}

.imprint address p {
  margin: 0 0 1.1rem;
}

/* Screenshot viewer */

.viewer {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.viewer[open] {
  display: grid;
  place-items: center;
}

.viewer::backdrop {
  background: rgba(10, 10, 16, 0.86);
  backdrop-filter: blur(6px);
}

.viewer img {
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 6rem);
  width: auto;
  border-radius: 26px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.viewer-close,
.viewer-nav {
  position: fixed;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.viewer-close:hover,
.viewer-nav:hover {
  background: rgba(255, 255, 255, 0.26);
}

.viewer-close {
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
}

.viewer-nav {
  bottom: max(1rem, env(safe-area-inset-bottom));
}

.viewer-nav.prev {
  left: calc(50% - 56px);
}

.viewer-nav.next {
  right: calc(50% - 56px);
}

/* Larger screens */

@media (min-width: 560px) {
  .store-mini {
    display: inline-flex;
  }
}

@media (min-width: 720px) {
  .ways {
    grid-template-columns: 1fr 1fr;
  }

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

  .viewer-nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .viewer-nav.prev {
    left: 1.25rem;
  }

  .viewer-nav.next {
    right: 1.25rem;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 4.5rem 0 1rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 3rem;
  }

  .hero-phone {
    width: 320px;
  }

  .split {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
  }

  .section {
    padding-top: 5.5rem;
  }
}

@media (min-width: 1000px) {
  .page-nav {
    display: flex;
  }

  .page-nav + .header-actions {
    margin-left: 1.5rem;
  }

  .gallery {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
    padding-inline: 0;
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 1.25rem;
    overflow: visible;
  }
}

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

  .store-button,
  .shot,
  .lang-button .chev {
    transition: none;
  }

  .hero-phone {
    transform: none;
  }
}
