/* ==========================================================================
   Karrim — site de divulgação (karrim.com.br)
   Identidade: verde #129A3B + branco · fonte Inter
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand-50: #f0fdf4;
  --brand-100: #dcfce7;
  --brand-200: #bbf7d0;
  --brand-500: #22c55e;
  --brand-600: #129a3b;
  --brand-700: #0f8233;
  --brand-800: #0b6b2c;
  --brand-900: #08461d;
  --ink: #172b21;
  --muted: #5b6b63;
  --line: #e5ede7;
  --canvas: #f6f8f7;
  --surface: #ffffff;
  --radius: 24px;
  --shadow: 0 1px 2px rgb(23 43 33 / 0.05), 0 8px 24px rgb(23 43 33 / 0.06);
  --shadow-lg: 0 24px 60px rgb(11 107 44 / 0.18);
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand-700);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* ------------------------------ Cabeçalho ------------------------------ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 20px rgb(23 43 33 / 0.05);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 40px;
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover {
  color: var(--ink);
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
}

/* ------------------------------ Botões ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 6px 18px rgb(18 154 59 / 0.28);
}
.btn-primary:hover {
  background: var(--brand-700);
}
.btn-small {
  height: 42px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 14px;
}

/* Botões das lojas */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 196px;
  height: 60px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform 0.15s, background 0.15s;
}
.store-btn:hover {
  background: #0d1f16;
  transform: translateY(-1px);
}
.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.store-btn small {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  line-height: 1.2;
}
.store-btn strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}
.store-btn.light {
  background: #fff;
  color: var(--ink);
}
.store-btn.light:hover {
  background: var(--brand-50);
}
.soon-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------ Hero ------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 80px;
  background: radial-gradient(1100px 520px at 85% -10%, var(--brand-100), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, var(--brand-50), transparent 60%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-800);
  box-shadow: var(--shadow);
}
.eyebrow span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 12px;
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 6vw, 66px);
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-600);
}
.hero .lead {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 540px;
}
.hero .stores {
  margin-top: 32px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--muted);
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-points svg {
  width: 18px;
  height: 18px;
  color: var(--brand-600);
}

/* Celulares */
.phones {
  position: relative;
  height: 640px;
}
.phone {
  position: absolute;
  width: 290px;
  border-radius: 46px;
  padding: 10px;
  background: #0f1a14;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b3a31;
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%);
  background: #0f1a14;
  border-radius: 999px;
  z-index: 2;
}
.phone img {
  border-radius: 37px;
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  background: #fff;
}
.phone-main {
  right: 120px;
  top: 0;
  z-index: 2;
  animation: float 7s ease-in-out infinite;
}
.phone-back {
  right: -10px;
  top: 70px;
  width: 250px;
  transform: rotate(6deg);
  opacity: 0.96;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  max-width: 270px;
}
.floating-card strong {
  display: block;
  font-size: 14px;
}
.floating-card span {
  color: var(--muted);
  font-size: 13px;
}
.floating-card .avatar {
  flex-shrink: 0;
}
.fc-1 {
  left: -6px;
  top: 120px;
  animation: float 6s ease-in-out infinite 1s;
}
.fc-2 {
  left: 30px;
  bottom: 70px;
  animation: float 8s ease-in-out infinite 0.5s;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.av-1 {
  background: #2563eb;
}
.av-2 {
  background: #c2410c;
}
.av-3 {
  background: #7e22ce;
}
.check-dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-600);
  color: #fff;
}

/* ------------------------------ Seções ------------------------------ */

section {
  scroll-margin-top: 80px;
}
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--canvas);
}
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
}
.section-head h2 {
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}
.section-head p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
}

/* Passos */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 800;
}
.step h3 {
  margin-top: 18px;
  font-size: 22px;
}
.step p {
  margin-top: 8px;
  color: var(--muted);
}
.step-shot {
  margin: 28px auto 0;
  width: 78%;
  border-radius: 28px 28px 0 0;
  border: 8px solid #0f1a14;
  border-bottom: 0;
  overflow: hidden;
  height: 300px;
}
.step-shot img {
  width: 100%;
}

/* Recursos */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-700);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature h3 {
  margin-top: 18px;
  font-size: 18px;
}
.feature p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* Destaques (texto + imagem) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.split + .split {
  margin-top: 112px;
}
.split.reverse .split-media {
  order: -1;
}
.split h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
}
.split .lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
}
.checklist {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 12px;
  font-size: 16px;
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 999px;
  background: var(--brand-600)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.split-media {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.split-media .phone {
  position: relative;
  width: 270px;
}
.split-media .phone + .phone {
  margin-top: 60px;
}
.glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(closest-side, var(--brand-100), transparent);
  z-index: -1;
}

/* Família */
.family-demo {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: 14px;
}
.notif {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.notif strong {
  display: block;
  font-size: 16px;
}
.notif span {
  color: var(--muted);
  font-size: 14px;
}
.notif .time {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.item-demo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.item-img {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 26px;
}
.item-img .mini {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 24px;
  height: 24px;
  font-size: 10px;
  border: 2px solid #fff;
}
.initials {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.house {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-radius: 22px;
  background: var(--brand-600);
  color: #fff;
}
.house small {
  display: block;
  opacity: 0.85;
}
.house strong {
  font-size: 18px;
}
.stack {
  display: flex;
}
.stack .avatar {
  border: 3px solid var(--brand-600);
  margin-left: -10px;
}

/* Privacidade */
.privacy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.privacy .feature {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.14);
  color: #fff;
}
.privacy .feature p {
  color: rgb(255 255 255 / 0.78);
}
.privacy .feature-icon {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}
.section-dark {
  background: linear-gradient(160deg, var(--brand-800), var(--brand-900));
  color: #fff;
}
.section-dark .kicker {
  color: var(--brand-200);
}
.section-dark .section-head p {
  color: rgb(255 255 255 / 0.8);
}
.section-dark a {
  color: #fff;
}

/* Perguntas */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 24px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: 22px;
  font-weight: 500;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 0 20px;
  color: var(--muted);
}

/* Chamada final */
.cta {
  padding: 0 0 96px;
}
.cta-box {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 32px;
  padding: 56px;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  color: #fff;
}
.cta-box h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
}
.cta-box p {
  margin-top: 12px;
  font-size: 18px;
  opacity: 0.9;
}
.cta-box .stores {
  margin-top: 28px;
}
.cta-box .soon-note {
  color: rgb(255 255 255 / 0.85);
}
.cta-logo {
  justify-self: center;
  width: 220px;
  opacity: 0.95;
}

/* Rodapé */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: #fff;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer p {
  color: var(--muted);
  font-size: 15px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.footer nav a:hover {
  color: var(--brand-700);
}
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* Aviso "em breve" */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Animação ao rolar */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------ Páginas legais ------------------------------ */

.legal {
  padding: 56px 0 96px;
}
.legal .container {
  max-width: 780px;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.legal h1 {
  margin-top: 20px;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
}
.legal .updated {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.legal .intro {
  margin-top: 24px;
  font-size: 18px;
  color: var(--ink);
}
.legal h2 {
  margin-top: 40px;
  font-size: 22px;
}
.legal p,
.legal li {
  color: #3c4c44;
  font-size: 16.5px;
}
.legal p {
  margin-top: 12px;
}
.legal ul {
  margin: 12px 0 0;
  padding-left: 22px;
}
.legal li {
  margin-top: 8px;
}
.legal li::marker {
  color: var(--brand-600);
}
.legal-nav {
  margin-top: 56px;
  padding: 24px;
  border-radius: 20px;
  background: var(--canvas);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

/* ------------------------------ Responsivo ------------------------------ */

@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .phone-main {
    right: 90px;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgb(23 43 33 / 0.08);
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 14px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav .btn {
    margin-top: 16px;
    border: 0;
    color: #fff;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .hero {
    padding: 32px 0 56px;
  }
  .hero .container,
  .split,
  .cta-box {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    text-align: center;
  }
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .stores,
  .hero-points {
    justify-content: center;
  }
  .phones {
    height: 560px;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }
  .phone-main {
    right: 50%;
    transform: translateX(50%);
    width: 260px;
    animation: none;
  }
  .phone-back {
    display: none;
  }
  .fc-1 {
    left: 0;
    top: 60px;
  }
  .fc-2 {
    left: auto;
    right: 0;
    bottom: 40px;
  }
  .steps,
  .privacy {
    grid-template-columns: 1fr;
  }
  .split {
    gap: 40px;
  }
  .split.reverse .split-media {
    order: 0;
  }
  .split + .split {
    margin-top: 80px;
  }
  .section {
    padding: 72px 0;
  }
  .cta-box {
    padding: 40px 24px;
    text-align: center;
  }
  .cta-box .stores {
    justify-content: center;
  }
  .cta-logo {
    width: 140px;
    order: -1;
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
  .store-btn {
    flex: 1 1 100%;
  }
  .split-media .phone {
    width: 230px;
  }
  .split-media .phone + .phone {
    display: none;
  }
  .floating-card {
    max-width: 220px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Ajustes finos */
.nav a.btn,
.nav a.btn:hover {
  color: #fff;
}
.notif .avatar,
.floating-card .avatar,
.floating-card .check-dot {
  color: #fff;
  font-size: 15px;
}
.step-shot img {
  height: auto;
}
.step-shot.bottom {
  display: flex;
  align-items: flex-end;
}
