/* ==========================================================
   ecomcat – stylesheet
   Pure CSS, no external resources (fonts, CDNs) → DSGVO-friendly
   ========================================================== */

:root {
  --bg: #000;
  --surface: #0f0f10;
  --surface-2: #161618;
  --border: #26262a;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --accent: #fc7c96;
  --accent-soft: rgba(252, 124, 150, .12);
  --red: #ff453a;
  --orange: #ff9f0a;
  --green: #32d74b;
  --violet: #a78bfa;
  --radius: 22px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--text); text-decoration: none; transition: color .2s, opacity .2s, background .2s, border-color .2s; }
a:hover { color: var(--accent); }

.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { opacity: .8; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--text); color: #000; padding: 8px 14px; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.nav-logo img { width: 92px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { font-weight: 600; }

@media (max-width: 640px) {
  .nav { flex-wrap: wrap; gap: 6px 18px; padding: 12px 0; }
  .nav-links { flex-wrap: wrap; gap: 6px 18px; width: 100%; }
  .nav-links a { font-size: 14px; white-space: nowrap; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
}
.btn:hover { border-color: #444; color: var(--text); background: #1d1d20; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #000; }
.btn-primary:hover { background: #ff97ac; border-color: #ff97ac; color: #000; }

.appstore-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px; border-radius: 12px;
  background: #000; border: 1px solid #a6a6a6; color: #fff; line-height: 1.1;
}
.appstore-btn:hover { color: #fff; border-color: #fff; }
.appstore-btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.appstore-btn small { display: block; font-size: 11px; font-weight: 400; }
.appstore-btn strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }

/* ---------- HERO ---------- */
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.hero-logo { width: 100%; max-width: 420px; }
.hero h1 { margin-bottom: .35em; }
.highlight { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-logo { max-width: 260px; }
}

/* ---------- SECTIONS ---------- */
.section { padding: 72px 0; }
.section-head { margin-bottom: 40px; max-width: 40em; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.muted { color: var(--muted); }

/* ---------- APP CARDS (home) ---------- */
.app-card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 32px;
  padding: 56px; margin-bottom: 32px; overflow: hidden; position: relative;
}
.app-card::before {
  content: ""; position: absolute; inset: auto -20% -60% 30%; height: 120%;
  background: radial-gradient(closest-side, var(--glow, rgba(252,124,150,.16)), transparent);
  pointer-events: none;
}
.app-card.todo { --glow: rgba(255, 159, 10, .14); }
.app-card.nova { --glow: rgba(167, 139, 250, .18); }
.app-card > * { position: relative; }

.app-title { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.app-title h2, .app-title h1 { margin: 0; }
.app-title a { color: var(--text); }
.app-title a:hover { color: var(--accent); }
.app-sub { color: var(--muted); font-size: 15px; margin: 2px 0 0; }

.app-icon { width: 76px; height: 76px; border-radius: 22.5%; flex: none; border: 1px solid var(--border); }
.app-icon-lg { width: 120px; height: 120px; }
.nova-icon {
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #5b4bb7, #1e1b3a 60%, #0b0b14);
}
.nova-icon svg { width: 46%; height: 46%; fill: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

.phones { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.phone {
  width: 100%; max-width: 210px; border-radius: 28px; border: 3px solid #2c2c30;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
}
.phones .phone:nth-child(1) { transform: translateY(-14px); }
.phones .phone:nth-child(2) { max-width: 180px; opacity: .92; }

@media (max-width: 900px) {
  .app-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 36px; border-radius: 26px; }
  .phones .phone, .phones .phone:nth-child(2) { max-width: 46%; border-radius: 20px; }
}

/* ---------- PRINCIPLES ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.tile p { color: var(--muted); margin: 0; font-size: 16px; }
.tile-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.tile-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  text-align: center; padding: 64px 32px; border-radius: 32px;
  background: linear-gradient(135deg, rgba(252,124,150,.16), rgba(167,139,250,.12));
  border: 1px solid var(--border);
}
.cta .btn-row { justify-content: center; }

/* ---------- APP DETAIL PAGES ---------- */
.app-hero { padding: 72px 0 40px; }
.app-hero .lead { margin-top: 10px; }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding: 0; list-style: none; }
.subnav a { display: inline-block; font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.subnav a:hover { color: var(--text); border-color: #444; }

.gallery {
  display: flex; gap: 20px; overflow-x: auto; padding: 8px 24px 28px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #333 transparent;
  max-width: var(--max); margin: 0 auto;
}
.gallery img {
  flex: none; width: 240px; border-radius: 28px; border: 3px solid #2c2c30;
  scroll-snap-align: start;
}
@media (max-width: 640px) { .gallery img { width: 200px; border-radius: 22px; } }

.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; margin-bottom: 24px; scroll-margin-top: 90px; }
.content-card h2 { font-size: 1.6rem; }
.content-card p, .content-card li { color: #d2d2d7; }
.content-card ul { padding-left: 1.2em; margin: 0 0 1em; }
.content-card li { margin-bottom: 6px; }
@media (max-width: 640px) { .content-card { padding: 26px 22px; } }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.feature { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .3em; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; }
.feature .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

.levels { display: flex; border-radius: 14px; overflow: hidden; margin: 18px 0 6px; max-width: 420px; }
.levels span { flex: 1; text-align: center; padding: 10px 6px; font-size: 14px; font-weight: 600; color: #fff; }

.price-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.price-list li { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin: 0 !important; }
.price-list strong { display: block; font-size: 1.35rem; color: var(--text); }
.price-list span { font-size: 14px; color: var(--muted); }

/* ---------- LEGAL / TEXT PAGES ---------- */
.page-head { padding: 72px 0 24px; }
.prose { padding-bottom: 72px; }
.prose > * { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose p, .prose li { color: #d2d2d7; }
.prose address { font-style: normal; color: #d2d2d7; margin-bottom: 1em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.placeholder { background: rgba(255, 159, 10, .18); color: var(--orange); padding: 0 4px; border-radius: 4px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 8px 0 40px; }
.contact-card h3 { margin-bottom: .2em; }
.contact-card p { font-size: 15px; }
.contact-card .mail { font-size: 1.05rem; font-weight: 600; color: var(--accent); word-break: break-all; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 40px; color: var(--dim); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-grid img { width: 96px; margin-bottom: 12px; opacity: .9; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-cols h4 { color: var(--text); font-size: 13px; margin: 0 0 12px; font-weight: 600; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 560px) {
  .app-hero .app-title { flex-direction: column; align-items: flex-start; }
  .app-icon-lg { width: 96px; height: 96px; }
  .app-hero h1 { font-size: 2.6rem; }
}

.badge-off {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; font-size: 14px;
  border: 1px dashed #3a3a3e; color: var(--muted);
}
