:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --band: #f1f0ee;
  --text: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --on-brand: #ffffff;
  --code-bg: #1c1917;
  --code-text: #f5f5f4;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1c1a19;
    --band: #181716;
    --text: #f5f5f4;
    --muted: #a8a29e;
    --line: #2e2b29;
    --brand: #818cf8;
    --brand-hover: #a5b4fc;
    --on-brand: #121110;
    --code-bg: #0a0a09;
  }
}

* { box-sizing: border-box; }

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

a { color: var(--brand); }
a:hover { color: var(--brand-hover); }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }

section { padding: 64px 0; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.sub { color: var(--muted); max-width: 640px; margin: 0 0 32px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 1; }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--text); }

/* hero */
.hero { padding-block: 88px 56px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.points { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .95rem; }
.points li::before { content: "✓ "; color: var(--brand); font-weight: 700; }

/* buttons */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.btn:hover { border-color: var(--muted); color: var(--text); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn.small { padding: 7px 14px; font-size: .9rem; }

/* app menu */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.app {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.app-head { display: flex; gap: 14px; align-items: flex-start; }
.app-head p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.icon { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; flex: none; }
.icon.wide { object-fit: contain; }
.icon.big { width: 88px; height: 88px; border-radius: 20px; }
.shot {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 18px 0 4px;
}
.app ul { padding-left: 1.1em; margin: 14px 0 18px; font-size: .92rem; color: var(--muted); }
.app-links { margin-top: auto; display: flex; gap: 8px; }
.tag {
  font-size: .7rem; font-weight: 600; vertical-align: middle; white-space: nowrap;
  padding: 2px 8px; border-radius: 99px;
  background: var(--band); border: 1px solid var(--line); color: var(--muted);
}

/* install */
.code {
  display: flex; align-items: center; gap: 12px;
  background: var(--code-bg); color: var(--code-text);
  border-radius: var(--radius);
  padding: 14px 14px 14px 20px;
  max-width: 820px;
}
.code code { flex: 1; overflow-x: auto; white-space: nowrap; font: 14px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.copy {
  flex: none; cursor: pointer;
  background: transparent; color: var(--code-text);
  border: 1px solid #57534e; border-radius: 8px;
  padding: 6px 12px; font: inherit; font-size: .85rem;
}
.copy:hover { border-color: var(--code-text); }
.steps { margin: 28px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }
.guides { margin: 24px 0 0; color: var(--muted); font-size: .95rem; }

/* plasto */
.build { display: flex; gap: 28px; align-items: center; }
.build p { margin: 0; color: var(--muted); max-width: 680px; }

/* footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 32px; color: var(--muted); font-size: .9rem; }

@media (max-width: 600px) {
  nav { gap: 12px; }
  nav a { font-size: .9rem; }
  nav a:last-child { display: none; }
  section { padding: 48px 0; }
  .hero { padding-top: 56px; }
  .build { flex-direction: column; align-items: flex-start; }
}

/* contact */
.contact-card {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 32px; max-width: 100%;
}
.contact-card .label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-card .email { font-size: clamp(1.2rem, 5vw, 1.5rem); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
nav a[aria-current="page"] { color: var(--text); }

/* contact section on the home page */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 32px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.offer p { margin: 0; color: var(--muted); }

@media (max-width: 380px) {
  nav a[href$="#install"] { display: none; }
}
