/* ============================================================
   PATRIKDORFLER.COM — native Apple language.
   SF Pro, white, each app in its own brand color, a real dock.
   ============================================================ */

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.12);
  --page: #ffffff;
  --max: 980px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.47;
  font-size: 17px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
a { color: inherit; }

/* ================= NAV ================= */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.nav-name { font-weight: 600; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  margin-left: 22px;
}
.nav-links a:hover { color: var(--ink); }

/* ================= HERO ================= */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 11vh 22px 13vh;
}
.hero h1 {
  font-size: clamp(52px, 9.5vw, 112px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--muted);
  max-width: 640px;
  font-weight: 500;
}
.hero-sub br + * { margin-top: 0; }
.hero-hint {
  margin-top: 44px;
  font-size: 14px;
  color: #b0b0b5;
}

/* ================= APP SECTIONS ================= */
.app { padding: 96px 0; }
.app-tint { background: var(--tint); }
.app-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}
.app-head {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  margin-bottom: 40px;
}
.app-icon {
  width: clamp(64px, 7vw, 88px);
  height: auto;
  border-radius: 22.5%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
}
.app-label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.app h2, .work h2 {
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.app-cols {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.app-text p {
  margin-bottom: 18px;
  max-width: 56ch;
}
.award-line strong { font-weight: 650; }

/* links */
.text-link {
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.text-link.light { color: #e8dfc8; }
.text-link.muted { color: var(--muted); }
.link-row { display: flex; gap: 26px; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 980px;
  margin-top: 6px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.store-btn:hover { background: #232326; transform: scale(1.03); }
.store-btn svg { margin-top: -2px; }

/* screenshots */
.app-shots {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  align-items: flex-start;
}
.app-shots img {
  width: clamp(120px, 13vw, 168px);
  height: auto;
  border-radius: 22px;
}
#kids .app-shots img {
  border: 1px solid var(--hairline);
  width: clamp(140px, 15vw, 196px);
}
.app-shots img:nth-child(2) { margin-top: 34px; }
.app-shots-single { flex-direction: column; align-items: center; }
.mascot { width: clamp(200px, 22vw, 300px) !important; border-radius: 0 !important; }
.shot-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}

/* LogicLab black section — the app's own brand */
.app-black { background: #131110; color: #f5f0e4; }
.app-black .app-text p { color: rgba(245, 240, 228, 0.82); }
.app-black h2 { color: #f5f0e4; }
.ll-icon-big {
  width: clamp(180px, 20vw, 260px) !important;
  border-radius: 22.5% !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* ================= WORK ================= */
.work {
  border-top: 1px solid var(--hairline);
  padding: 84px 0 96px;
}
.work .app-label { margin-bottom: 10px; }
.work h2 { margin-bottom: 18px; }
.work-text { max-width: 56ch; }

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 26px 0 120px;
  font-size: 13px;
  color: var(--muted);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
}
.footer a:first-child { margin-left: 0; }
.footer a:hover { color: var(--ink); }

/* ================= DOCK ================= */
.dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(250, 250, 250, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 24px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16);
  z-index: 100;
}
.dock a {
  position: relative;
  display: block;
  width: var(--s, 46px);
  transition: width 0.09s ease-out;
}
.dock img {
  width: 100%;
  height: auto;
  border-radius: 22.5%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.dock a::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(28, 28, 30, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.dock a:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 820px) {
  .app-cols { grid-template-columns: 1fr; }
  .app-shots { justify-content: flex-start; }
  .app-head { gap: 18px; }
  .app { padding: 72px 0; }
  .dock { gap: 8px; bottom: 10px; }
  .dock a { width: 42px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock a { transition: none; }
}
