/* sveiko.com/3d/ - one static page, no third-party requests */
:root {
  /* the colours of the design renders: orange parts on black, white frame */
  --bg: #121212;
  --card: #222222;
  --line: #3a3a3a;
  --text: #ffffff;
  --muted: #bdbdbd;
  --accent: #e07b2c;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 system-ui,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(16px, calc((100% - 1080px) / 2));
  background: rgba(18, 18, 18, 0.95);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
  margin-left: 2px;
}

.top nav {
  display: flex;
  gap: 20px;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--text);
}

.top nav a.app-link {
  color: var(--accent);
  font-weight: 600;
}

main,
footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  padding: 48px 0 8px;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 {
  color: var(--accent);
  font-size: 1.6rem;
  margin: 0 0 16px;
}

.lead {
  font-size: 1.15rem;
  max-width: 760px;
}

.note {
  color: var(--muted);
  max-width: 760px;
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn.primary {
  background: var(--accent);
  color: #121212;
}

.btn:hover {
  filter: brightness(1.1);
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.grid a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s;
}

.grid a:hover {
  border-color: var(--accent);
}

.grid img {
  width: 100%;
  height: auto;
  display: block;
}

.grid span {
  padding: 12px 12px 0;
  font-weight: 600;
  line-height: 1.35;
}

.grid small {
  padding: 4px 12px 12px;
  color: var(--muted);
}

.more {
  margin-top: 20px;
}

.photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

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

figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
}

figcaption {
  color: var(--muted);
  padding-top: 6px;
}

.cockpit p {
  max-width: 760px;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  margin: 0 0 4px;
}

/* the header on every page (/3d/ and /3d/analytics/, each in en, de/, uk/) */
.top nav {
  flex-wrap: wrap;
  align-items: center;
}

/* the language toggle, like the app's: one small segmented control */
.langs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.top nav .langs a {
  padding: 1px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted);
}

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

/* the Pimapata page (/3d/analytics/, de/, uk/) */
h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.features li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
}

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

/* app screenshots match this page's scheme: it is dark, so they come from
   promo/screenshots/dark-*.png (a light scheme here would need the light ones) */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}

.shots img {
  aspect-ratio: auto;
  object-fit: contain;
}

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

/* text blocks keep the reading width of .lead and .note */
.steps,
.pro-list,
#pro p,
#privacy p,
details {
  max-width: 760px;
}

.steps {
  padding-left: 1.4em;
}

.steps li {
  margin-bottom: 8px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  color: var(--muted);
  margin: 8px 0 0;
}

/* on a phone the header wraps to several lines: let it scroll away */
@media (max-width: 600px) {
  .top {
    position: static;
  }
}

#pro h3 {
  margin-top: 24px;
}

.pro-list {
  padding-left: 1.2em;
}

.pro-list li {
  margin-bottom: 6px;
}
