﻿/* ============================================
   MANZIL — Base Styles
   ============================================ */

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

html, body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;
  line-height: 1.4;
  transition: background-color var(--dur-std) var(--ease),
              color var(--dur-std) var(--ease);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

input, textarea {
  outline: none;
  border: none;
  background: none;
}

/* ---------- APP FRAME ---------- */
#app {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
}

/* Mobile app frame — desktop par phone size lock */
@media (min-width: 600px) {
  body {
    background: #D8DDE5;
  }
  
  #app {
    background: var(--bg);
    min-height: 100dvh;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.12);
    border-radius: 0;
  }
}

.screen {
  min-height: 100dvh;
  padding: max(env(safe-area-inset-top), var(--s-4)) var(--s-5) 130px;
  animation: screenEnter var(--dur-std) var(--ease);
}

@keyframes screenEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- SCROLLBARS ---------- */
.scroll-x, .scroll-y {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar,
.scroll-y::-webkit-scrollbar {
  display: none;
}

/* ---------- TYPOGRAPHY ---------- */
.t-display { font-size: 38px; font-weight: 800; letter-spacing: -1.8px; line-height: 1.05; }
.t-h1      { font-size: 32px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.1; }
.t-h2      { font-size: 28px; font-weight: 800; letter-spacing: -1.0px; line-height: 1.15; }
.t-h3      { font-size: 24px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; }
.t-h4      { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.25; }
.t-body-lg { font-size: 17px; font-weight: 800; letter-spacing: -0.4px; }
.t-body    { font-size: 15px; font-weight: 500; letter-spacing: -0.2px; }
.t-small   { font-size: 13px; font-weight: 700; letter-spacing: -0.1px; }
.t-caption { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.t-micro   { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }

.t-2 { color: var(--text-2); }
.t-3 { color: var(--text-3); }

/* ---------- UTILITIES ---------- */
.row     { display: flex; align-items: center; }
.row-btw { display: flex; align-items: center; justify-content: space-between; }
.col     { display: flex; flex-direction: column; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.gap-5 { gap: var(--s-5); }
.gap-6 { gap: var(--s-6); }

.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
