/*
 * Elea Conecta website. Mobile-first: the base rules are the phone layout and
 * the media queries only add columns and space on wider screens. Colors, radii
 * and type follow the app (packages/elea_core/lib/theme/app_theme.dart); the
 * app uses the platform sans, so the site does too (no font downloads).
 */
:root {
  --primary: #0033a0;
  --primary-medium: #0a43b4;
  --primary-light: #0074c9;
  --accent: #6ecfe2;
  --accent-soft: #e3f4fb;
  --navy: #0a1630;
  --background: #ffffff;
  --surface: #f2f5fa;
  --border: #c3d0e5;
  --text: #0a1630;
  --text-secondary: #5a6b85;
  --on-primary: #ffffff;
  --radius-card: 24px;
  --radius-button: 32px;
  --radius-chip: 20px;
  --radius-field: 18px;
  --gutter: 20px;
  --max: 1160px;
  --shadow: 0 18px 48px rgba(10, 22, 48, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-light);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: var(--radius-button);
  background: var(--navy);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--on-primary);
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-filled {
  fill: currentColor;
  stroke: none;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(195, 208, 229, 0.55);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--navy);
  text-decoration: none;
}

.brand-logo {
  width: 82px;
  height: auto;
}

.brand-name {
  padding-left: 10px;
  border-left: 1.5px solid var(--border);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nav-links {
  display: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-button);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.lang-switch:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-switch .icon {
  width: 18px;
  height: 18px;
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 56px;
  background: linear-gradient(160deg, var(--navy) 0%, #0b2a6f 52%, var(--primary) 100%);
  color: var(--on-primary);
}

.hero-bars {
  position: absolute;
  bottom: 80px;
  right: -120px;
  width: 340px;
  pointer-events: none;
  opacity: 0.32;
}

.hero-bars span {
  display: block;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-medium), var(--primary-light) 60%, var(--accent));
  transform: skewX(-18deg);
}

.hero-bars span:nth-child(2) {
  margin-left: -34px;
}

.hero-bars span:nth-child(3) {
  margin-left: -68px;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 40px;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
}

.hero h1 {
  margin-top: 14px;
  color: var(--on-primary);
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.hero-lead {
  margin-top: 18px;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.highlights li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--radius-chip);
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 600;
}

.highlights .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.stores {
  margin-top: 28px;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.badge {
  display: block;
  height: 48px;
  width: auto;
}

.badges a {
  border-radius: 10px;
}

.stores-note {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual .phone {
  width: min(240px, 64vw);
}

/* ------------------------------------------------------------------- phone */

.phone {
  margin: 0;
  overflow: hidden;
  border: 9px solid var(--navy);
  border-radius: 40px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 31px;
  background: var(--surface);
}

/* ---------------------------------------------------------------- sections */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 40em;
  margin-bottom: 32px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: 30px;
}

.section-head p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 17px;
}

.cards {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.section-alt .card {
  background: var(--background);
}

.card h3 {
  margin-top: 16px;
  font-size: 19px;
}

.card p {
  margin-top: 8px;
  color: var(--text-secondary);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary);
}

/* -------------------------------------------------------------- showcase */

.showcase {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(250px, 70vw);
  gap: 20px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px var(--gutter) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.showcase::-webkit-scrollbar {
  display: none;
}

.showcase li {
  scroll-snap-align: center;
}

.showcase h3 {
  margin-top: 20px;
  font-size: 19px;
}

.showcase p {
  margin-top: 6px;
  color: var(--text-secondary);
}

/* ------------------------------------------------------------------ access */

.access {
  background: var(--navy);
  color: var(--on-primary);
}

.access .eyebrow {
  color: var(--accent);
}

.access h2,
.access h3 {
  color: var(--on-primary);
}

.access .section-head p,
.access .card p {
  color: rgba(255, 255, 255, 0.74);
}

.access .card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.access .card-icon {
  background: rgba(110, 207, 226, 0.16);
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 24px;
  font-weight: 700;
  text-decoration: none;
}

.access .text-link {
  color: var(--accent);
}

.text-link .icon {
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------------- steps */

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px 24px 24px 84px;
  border-radius: var(--radius-card);
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 22px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
}

.steps h3 {
  font-size: 19px;
}

.steps p {
  margin-top: 6px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------- faq */

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-field);
  background: var(--background);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.faq-item summary .icon {
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 20px 20px;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------- cta */

.cta {
  padding: 0 0 72px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 40px 24px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 55%, var(--primary-light) 100%);
  color: var(--on-primary);
}

.cta-box h2 {
  max-width: 18em;
  color: var(--on-primary);
  font-size: 28px;
}

.cta-box p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-box .soon {
  margin-top: 24px;
}

/* ------------------------------------------------------------------ legal */

.legal-hero {
  padding: 40px 0 32px;
  background: var(--surface);
}

.legal-hero h1 {
  margin-top: 10px;
  font-size: 32px;
}

.legal-hero .updated {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.legal-hero .lead {
  margin-top: 16px;
  max-width: 44em;
  color: var(--text-secondary);
  font-size: 17px;
}

.legal-layout {
  display: grid;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 72px;
}

.toc {
  padding: 20px 22px;
  border-radius: var(--radius-field);
  background: var(--surface);
}

.toc h2 {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

.toc li + li {
  margin-top: 6px;
}

.toc a {
  color: var(--navy);
  text-decoration: none;
}

.toc a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.legal {
  max-width: 46em;
}

.legal section + section {
  margin-top: 40px;
}

.legal h2 {
  font-size: 22px;
}

.legal p,
.legal ul,
.legal ol {
  margin-top: 14px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: var(--navy);
}

.legal .note {
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-field) var(--radius-field) 0;
  background: var(--accent-soft);
}

.legal section:target h2 {
  color: var(--primary);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 40px;
  font-weight: 700;
  text-decoration: none;
}

/* ------------------------------------------------------------------ 404 */

.not-found {
  padding: 96px 0;
  text-align: center;
}

.not-found h1 {
  font-size: 30px;
}

.not-found p {
  margin: 14px auto 0;
  max-width: 30em;
  color: var(--text-secondary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 28px;
  border-radius: var(--radius-button);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-medium);
  color: var(--on-primary);
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  padding: 48px 0 36px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer a {
  color: var(--on-primary);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-top {
  display: grid;
  gap: 28px;
}

.footer-brand .brand-logo {
  width: 96px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 30em;
}

.footer-links {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 600;
  text-decoration: none;
}

.footer-notes {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-notes p + p {
  margin-top: 10px;
}

.footer-legal {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.footer-legal .developed {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

/* --------------------------------------------------------------- tablet */

@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .section-head h2 {
    font-size: 36px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .cta-box {
    padding: 56px 48px;
  }

  .cta-box h2 {
    font-size: 34px;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr;
  }

  .legal-hero h1 {
    font-size: 40px;
  }
}

/* -------------------------------------------------------------- desktop */

@media (min-width: 960px) {
  .nav-links {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-button);
    color: var(--navy);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }

  .nav-links a:hover {
    background: var(--surface);
    color: var(--primary);
  }

  .hero {
    padding: 72px 0 80px;
  }

  .hero-bars {
    top: 40px;
    bottom: auto;
    right: -40px;
    width: 520px;
  }

  .hero-bars span {
    height: 64px;
    margin-bottom: 24px;
  }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .hero-visual .phone {
    width: 300px;
  }

  .section {
    padding: 96px 0;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .card {
    padding: 28px;
  }

  .showcase {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    gap: 40px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .showcase .phone {
    max-width: 290px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .steps li {
    padding: 84px 28px 28px;
  }

  .steps li::before {
    top: 28px;
    left: 28px;
  }

  .cta-box {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 64px;
  }

  .cta-box .soon {
    margin-top: 0;
  }

  .faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 56px;
  }

  .faq-layout .section-head {
    position: sticky;
    top: 104px;
  }

  .legal-layout {
    grid-template-columns: 260px 1fr;
    gap: 56px;
    padding-top: 48px;
  }

  .toc {
    position: sticky;
    top: 88px;
    align-self: start;
  }

  .footer-top {
    grid-template-columns: 2fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .faq-item summary .icon {
    transition: none;
  }
}
