/* ===== Pixel Nomad Studio — shared base ===== */
:root {
  /* Studio (dark) */
  --st-bg: #0E1411;
  --st-card: rgba(255, 255, 255, 0.045);
  --st-border: rgba(255, 255, 255, 0.09);
  --st-ink: #F2F4F0;
  --st-ink-sec: rgba(242, 244, 240, 0.65);
  --st-green: #55B63B;
  --st-green-light: #7BD75E;
  --st-teal: #1FBFA4;
  /* WordForge */
  --wf-bg: #F8F6EF;
  --wf-surface: #FFFFFF;
  --wf-dark: #1F4B2A;
  --wf-forest: #247A34;
  --wf-primary: #4D9F32;
  --wf-light: #55B63B;
  --wf-gold: #E2AA2E;
  --wf-gold-light: #F2C14E;
  --wf-ink: #18251B;
  --wf-ink-sec: #5F6D5C;
  --wf-border: #E3E0D7;
  /* CostPilot */
  --cp-bg: #F4F6F7;
  --cp-teal: #1FBFA4;
  --cp-teal-dark: #0E8F7B;
  --cp-ink: #1C2B33;
  --cp-ink-sec: #5B6B74;
  --cp-border: #E2E8EA;
  --cp-amber: #E8A23D;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { text-wrap: pretty; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ===== Language toggle ===== */
html[data-lang="hu"] .en,
html[data-lang="hu"] .de { display: none !important; }
html[data-lang="en"] .hu,
html[data-lang="en"] .de { display: none !important; }
html[data-lang="de"] .hu,
html[data-lang="de"] .en { display: none !important; }

.lang-pill {
  display: inline-flex; border-radius: 999px; overflow: hidden;
  font-size: 12px; font-weight: 800; letter-spacing: 0.02em;
  border: 1px solid var(--pill-border, #E0DED6); cursor: pointer; user-select: none;
}
.lang-pill button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 7px 13px; font: inherit; color: var(--pill-fg, #5C6862);
}
.lang-pill button.active { background: var(--pill-active-bg, #16201B); color: var(--pill-active-fg, #fff); }

/* ===== Header ===== */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; position: relative; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 700; }
.site-nav a { text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.site-nav a:hover { opacity: 1; }
.header-right { display: flex; align-items: center; gap: 18px; }

/* ===== Store buttons ===== */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: flex; flex-direction: column; justify-content: center;
  padding: 12px 26px; border-radius: 14px; min-width: 172px; text-decoration: none;
  box-shadow: 0 8px 22px rgba(12, 20, 15, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(12, 20, 15, 0.24); }
.store-btn .sub { font-size: 11px; opacity: 0.78; font-weight: 700; }
.store-btn .name { font-size: 19px; font-weight: 900; line-height: 1.15; }

/* ===== Phone mock ===== */
.phone {
  width: var(--phone-w, 290px); border-radius: calc(var(--phone-w, 290px) * 0.155);
  background: var(--phone-frame, #1A2420); padding: calc(var(--phone-w, 290px) * 0.04);
  box-shadow: 0 30px 70px rgba(10, 20, 14, 0.35), 0 8px 22px rgba(10, 20, 14, 0.22);
  flex-shrink: 0;
}
.phone > .phone-screen {
  border-radius: calc(var(--phone-w, 290px) * 0.115); overflow: hidden; background: #fff;
  aspect-ratio: 1 / 1.97;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ===== Scroll reveal ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: 0.1s; }
  .reveal-d2 { transition-delay: 0.2s; }
  .reveal-d3 { transition-delay: 0.3s; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--ft-border, rgba(255,255,255,0.09));
  padding: 36px 0 44px; font-size: 14px; font-weight: 600;
  color: var(--ft-fg, rgba(242,244,240,0.6));
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ===== Legal / prose pages ===== */
.prose { max-width: 760px; margin: 0 auto; line-height: 1.7; }
.prose h1 { font-size: 42px; line-height: 1.1; letter-spacing: -0.02em; }
.prose h2 { font-size: 23px; margin-top: 2.2em; }
.prose p, .prose li { font-size: 16.5px; }

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .site-nav { display: none; }
}
