/* ===========================================================
   Enel Energia — prototype
   Base: reset, design tokens, typography
   Canvas: iPhone 17 Pro — 402 x 874 pt
   =========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* --- Brand ------------------------------------------------ */
  --enel-magenta: #ff0f64;
  --enel-magenta-dark: #d70f57;
  --enel-magenta-press: #e00d59;
  --enel-orange: #ff5a0f;
  --enel-yellow: #ffac0f;
  --enel-blue: #034bde;
  --enel-blue-bright: #0e63f8;
  --enel-blue-light: #2890ee;
  --enel-cyan: #41b9e6;
  --enel-green: #55be5a;
  --enel-green-soft: #aadfad;
  --enel-red: #e61400;

  /* --- Neutrals --------------------------------------------- */
  --ink: #000000;
  --ink-2: #1c1c1e;
  --ink-3: #6b6b6b;
  --ink-4: #949494;
  --ink-5: #b9b9b9;
  --line: #e5e5e5;
  --line-soft: #efefef;
  --surface: #ffffff;
  --bg: #f5f5f5;
  --bg-section: #fafafa;
  --grey-card: #e5e5e5;

  /* --- Device ----------------------------------------------- */
  --screen-w: 402px;
  --screen-h: 874px;
  --safe-top: 59px;
  --safe-bottom: 34px;
  --tabbar-h: 56px;
  --kb-h: 282px;
  --gutter: 24px;
  --radius-card: 10px;
  --radius-screen: 55px;

  /* --- Type ------------------------------------------------- */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-rounded: -apple-system, BlinkMacSystemFont, "SF Pro Rounded",
    "SF Pro Display", "Helvetica Neue", sans-serif;

  /* --- Motion ----------------------------------------------- */
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 380ms;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  background: #dcdcdf;
  background-image: radial-gradient(
    120% 90% at 50% 0%,
    #f2f2f4 0%,
    #d3d3d7 55%,
    #bebec3 100%
  );
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image: radial-gradient(
      120% 90% at 50% 0%,
      #2a2a2e 0%,
      #1a1a1d 60%,
      #101012 100%
    );
  }
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* --- Type helpers ------------------------------------------- */
.t-display {
  font-size: 30px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.t-title {
  font-size: 26px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.t-h2 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.t-body {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.2px;
}

.t-small {
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.1px;
}

.t-caption {
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
}

.muted {
  color: var(--ink-3);
}

.magenta {
  color: var(--enel-magenta);
}

.green {
  color: var(--enel-green);
}

.orange {
  color: var(--enel-orange);
}

.red {
  color: var(--enel-red);
}
