:root {
  --red: #b50024;
  --red-dark: #8d001c;
  --red-soft: #fff0f3;
  --ink: #151515;
  --muted: #6e6e73;
  --line: #e8e8eb;
  --surface: #f5f5f7;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 20, 25, .10);
  --small-shadow: 0 8px 24px rgba(20, 20, 25, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell {
  width: 100%;
  max-width: 760px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

.hero {
  position: relative;
  padding: max(28px, env(safe-area-inset-top)) 26px 38px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.16), transparent 32%),
    linear-gradient(150deg, #c7002e 0%, #97001d 62%, #6f0015 100%);
  overflow: visible;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.brand-name {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
}

.brand-subtitle {
  margin: 6px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 16px;
}

.hero-copy { margin-top: 38px; }

.pill {
  display: inline-flex;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.hero h1 {
  max-width: 620px;
  margin: 24px 0 14px;
  font-size: clamp(42px, 8vw, 68px);
  line-height: .98;
  letter-spacing: -2.8px;
}

.hero-copy > p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 20px;
  line-height: 1.5;
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  text-decoration: none;
  font-weight: 850;
  transition: transform .15s ease, opacity .15s ease;
}

.btn:active { transform: scale(.985); }

.btn-light {
  background: var(--white);
  color: var(--red-dark);
  font-size: 19px;
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.10);
  color: var(--white);
  font-size: 18px;
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-outline {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.btn-full { width: 100%; }

.quick-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px -10px -86px;
}

.quick-card {
  min-width: 0;
  border: 0;
  border-radius: 24px;
  padding: 20px 10px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-align: center;
}

.quick-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 27px;
}

.quick-card strong {
  display: block;
  color: #1689df;
  font-size: 16px;
}

.quick-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

main { padding: 112px 26px 30px; }

.view { display: none; }
.view.active { display: block; animation: fade .22s ease; }

@keyframes fade {
  from { opacity: .2; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.section-title { margin: 0 0 22px; }
.section-title.compact { margin-top: 34px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
}

.section-title h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -1.6px;
}

.section-title > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.feature-card, .panel, .product-card, .info-card, .contact-card, .service-card {
  border-radius: 24px;
  box-shadow: var(--small-shadow);
}

.dark-card {
  min-height: 260px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.13), transparent 34%),
    linear-gradient(145deg, #202025, #08080a);
}

.tag, .product-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.tag {
  background: rgba(255,255,255,.14);
  color: var(--white);
}

.dark-card h3 {
  margin: 16px 0 10px;
  font-size: 30px;
  letter-spacing: -1px;
}

.dark-card p { color: rgba(255,255,255,.72); line-height: 1.5; }

.text-link {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--white);
  font-weight: 800;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.info-card {
  padding: 21px;
  background: var(--white);
}

.info-card span { font-size: 28px; }
.info-card h3 { margin: 13px 0 7px; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.45; }

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 23px;
  background: var(--white);
}

.contact-card h3 { margin: 0; font-size: 28px; }
.contact-card p:last-child { margin: 8px 0 0; color: var(--muted); }

.round-call {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-size: 22px;
}

.panel {
  padding: 24px;
  background: var(--white);
}

.panel-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  font-size: 28px;
}

.panel h3 {
  margin: 16px 0 18px;
  font-size: 25px;
}

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

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
}

.steps li > span {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.steps strong { display: block; line-height: 1.3; }
.steps p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }

.warning {
  margin: 22px 0;
  padding: 17px;
  border: 1px solid rgba(181,0,36,.18);
  border-radius: 18px;
  background: var(--red-soft);
}

.warning strong { color: var(--red-dark); line-height: 1.4; }
.warning p { margin: 8px 0 0; color: #5e343d; line-height: 1.5; }

.form { display: grid; gap: 16px; }

.form label {
  display: grid;
  gap: 8px;
  font-weight: 750;
}

.form input, .form select, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  background: #fafafa;
  color: var(--ink);
  outline: none;
}

.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(181,0,36,.08);
}

.product-list, .service-list { display: grid; gap: 14px; }

.product-card {
  padding: 24px;
  background: var(--white);
}

.product-badge {
  background: var(--red-soft);
  color: var(--red);
}

.product-card h3 { margin: 8px 0 10px; font-size: 26px; }
.product-card p { color: var(--muted); line-height: 1.5; }
.product-card ul { margin: 14px 0 0; padding-left: 19px; line-height: 1.7; }

.product-list + .btn, .service-list + .btn { margin-top: 18px; }

.service-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 21px;
  background: var(--white);
}

.service-card > span { font-size: 28px; }
.service-card h3 { margin: 0 0 7px; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.45; }

.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  width: min(760px, 100%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
}

.nav-item {
  min-height: 58px;
  border: 0;
  background: transparent;
  color: #747477;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  font-weight: 750;
}

.nav-item span { font-size: 22px; line-height: 1; }
.nav-item small { font-size: 12px; }
.nav-item.active { color: var(--red); }

@media (min-width: 640px) {
  .hero-actions { grid-template-columns: 1fr 1fr; }
  main { padding-left: 34px; padding-right: 34px; }
  .quick-grid { margin-left: 0; margin-right: 0; }
}

@media (max-width: 390px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 42px; }
  main { padding-left: 18px; padding-right: 18px; }
  .quick-grid { gap: 8px; }
  .quick-card { padding-left: 6px; padding-right: 6px; }
  .quick-card strong { font-size: 14px; }
}


.contact-card-maps {
  align-items: flex-start;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.maps-action {
  background: #eef7ff;
  color: #0969a8;
}

.maps-round {
  background: #1689df;
}

.inline-map-link {
  display: inline-block;
  margin-top: 10px;
  color: #0878bd;
  font-weight: 850;
  text-decoration: none;
}

/* Versão 3: seletor de idioma e novo produto Fichet */
.brand-copy { min-width: 0; flex: 1; }
.language-toggle {
  flex: 0 0 auto;
  min-width: 46px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 900;
  letter-spacing: .6px;
  backdrop-filter: blur(10px);
}
.language-toggle:active { transform: scale(.97); }
.fichet-card { border: 1px solid rgba(181,0,36,.16); }
.product-symbol {
  width: 56px;
  height: 56px;
  margin: 14px 0 4px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  font-size: 28px;
}
.product-quote { margin-top: 20px; }
@media (max-width: 430px) {
  .brand-name { font-size: 14px; letter-spacing: 1.5px; }
  .brand-subtitle { font-size: 14px; }
  .language-toggle { min-width: 42px; height: 38px; }
}

.product-image {
  display: block;
  width: 100%;
  max-height: 360px;
  margin: 16px 0 18px;
  border-radius: 18px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

/* Versão 6: produto DOM Tapkey Pro */
.dom-card { border: 1px solid rgba(181,0,36,.16); }
