/* =========================================================
   ZELO / SouZelo — base.css
   Tokens, reset, base global e estabilidade mobile
========================================================= */

:root{
  --brand: #16a34a;
  --brand-600: #15803d;
  --brand-700: #166534;

  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: rgba(15,23,42,0.65);
  --border: rgba(15,23,42,0.14);

  --danger: #ef4444;
  --danger-bg: rgba(239,68,68,0.12);
  --success: #22c55e;
  --success-bg: rgba(34,197,94,0.14);

  --input-bg: #ffffff;
  --input-border: rgba(15,23,42,0.18);
  --shadow: 0 10px 30px rgba(2,6,23,0.10);

  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 10px;
}

body.theme-dark{
  --bg: #0b1220;
  --card: rgba(255,255,255,0.06);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.64);
  --border: rgba(255,255,255,0.12);
  --input-bg: rgba(255,255,255,0.06);
  --input-border: rgba(255,255,255,0.14);
  --shadow: 0 18px 45px rgba(0,0,0,0.45);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html, body{
  max-width: 100%;
  overflow-x: hidden;
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.35;
}

a{ color: inherit; }
h1,h2,h3{ margin:0; }
p{ margin:0; }

.gi-container{
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 40px;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: 100vh;
}

.gi-container-sm{
  width: min(520px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 34px;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: 100vh;
}

.page-demo-signup,
.page-demo-confirm{
  min-height: 100dvh;
  min-height: 100svh;
  min-height: 100vh;
}

img, video, svg, canvas{
  max-width: 100%;
  height: auto;
}

input:focus,
select:focus,
textarea:focus{
  transform: translateZ(0);
}

input, select, textarea{
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 900px){
  .gi-container-sm{
    padding-top: 28px;
    padding-bottom: 54px;
  }
}

@media (max-width: 768px){
  input, select, textarea, button{
    font-size: 16px !important;
  }
}

@supports (-webkit-touch-callout: none){
  input, select, textarea, button,
  .gi-input{
    font-size: 16px !important;
  }
}
