/* ============================================================
   LOFStudio — design system compartilhado das subpáginas de app
   (detalhe de app, política de privacidade, etc.)
   ============================================================ */

:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --surface: #f5f5f7;
  --surface-2: #fafafc;
  --border: #e5e5ea;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 20px;
  --maxw: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark theme tokens (shared) */
:root[data-theme="dark"] {
  --bg: #000000;
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --surface: #1c1c1e;
  --surface-2: #161617;
  --border: #2c2c2e;
  --nav-bg: rgba(22, 22, 23, 0.72);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --surface: #1c1c1e;
    --surface-2: #161617;
    --border: #2c2c2e;
    --nav-bg: rgba(22, 22, 23, 0.72);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] .brand img { filter: invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img { filter: invert(1); }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand img { height: 30px; width: auto; }

.nav-controls { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 30px;
  border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--muted);
  cursor: pointer; transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--fg); border-color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  transition: background .2s, color .2s;
}
.lang-toggle button.active { background: var(--accent); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 16px; font-weight: 500;
  cursor: pointer; border: none;
  transition: background .2s, transform .1s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); }

.link-accent { color: var(--accent); font-weight: 500; }
.link-accent:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 110px) 0; }
.section-alt { background: var(--surface-2); }
.section-head { text-align: center; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: clamp(16px, 2vw, 20px); max-width: 560px; margin: 0 auto; }

/* ---------- Footer ---------- */
footer { background: var(--surface-2); border-top: 1px solid var(--border); padding: 54px 0 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-inner .brand img { height: 34px; }
.socials { display: flex; gap: 18px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s, border-color .2s;
}
.socials a:hover { transform: translateY(-3px); border-color: var(--accent); }
.socials svg { width: 20px; height: 20px; fill: var(--fg); }
.footer-meta { color: var(--muted); font-size: 13px; }
.footer-meta a { color: var(--accent); }

/* ---------- Phone frame + screenshot ---------- */
.shots {
  display: flex; gap: 26px; justify-content: center;
  flex-wrap: wrap;
}
.phone {
  flex: 0 0 auto;
  width: 240px;
  border-radius: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px;
  box-shadow: var(--shadow);
}
.phone .screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #0071e3 0%, #4aa3ff 100%);
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.shot-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 16px;
  color: #fff; font-weight: 600; font-size: 15px;
}
.shot-ph small { font-weight: 400; opacity: .85; font-size: 12px; }

@media (max-width: 760px) {
  .shots {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .phone { scroll-snap-align: center; width: 210px; }
}
