/* =============================================
   QrDrive — Home (buyer-first, minimal)
   Light palette · no borders/shadows on blocks
   Mobile first → organized 12-col desktop
   ============================================= */

:root {
  --h-bg: #ffffff;
  --h-soft: #f5f6f8;
  --h-soft-2: #eceef2;
  --h-ink: #14161a;
  --h-ink-2: #5b6170;
  --h-ink-3: #8a90a0;
  --h-accent: #e35a00;
  --h-accent-hover: #c94f00;
  --h-accent-soft: #fff1e7;
  --h-radius: 16px;
  --h-radius-sm: 12px;
  --h-ease: cubic-bezier(.2, .7, .2, 1);
}

.home {
  background: var(--h-bg);
  color: var(--h-ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.home .material-icons-round {
  line-height: 1;
}

.h-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.h-section {
  padding: 3rem 0;
}

.h-section--soft {
  background: var(--h-soft);
}

.h-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.h-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.h-sub {
  color: var(--h-ink-2);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.h-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--h-accent);
  text-decoration: none;
  white-space: nowrap;
}

.h-link .material-icons-round {
  font-size: 18px;
  transition: transform .2s var(--h-ease);
}

.h-link:hover .material-icons-round {
  transform: translateX(3px);
}

/* ── Buttons ── */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}

.h-btn:active {
  transform: scale(.97);
}

.h-btn .material-icons-round {
  font-size: 20px;
}

.h-btn--accent {
  background: var(--h-accent);
  color: #fff;
}

.h-btn--accent:hover {
  background: var(--h-accent-hover);
}

.h-btn--soft {
  background: var(--h-soft-2);
  color: var(--h-ink);
}

.h-btn--soft:hover {
  background: #e2e5ea;
}

.h-btn--ink {
  background: var(--h-ink);
  color: #fff;
}

.h-btn--ink:hover {
  background: #2a2d33;
}

/* ── Icon round button (carousel arrows) ── */
.h-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--h-soft);
  color: var(--h-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, opacity .2s;
}

.h-icon-btn:hover {
  background: var(--h-soft-2);
}

.h-icon-btn:disabled {
  opacity: .35;
  cursor: default;
}

/* =============================================
   1. HERO (busca)
   ============================================= */
.h-hero {
  padding: calc(var(--navbar-height, 64px) + 1.75rem) 0 2rem;
}

.h-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.h-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.h-hero__title span {
  color: var(--h-accent);
}

.h-hero__lead {
  margin-top: 0.75rem;
  color: var(--h-ink-2);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 34rem;
}

/* Segmented tabs Comprar/Vender */
.h-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-top: 1.5rem;
  background: var(--h-soft);
  border-radius: 999px;
}

.h-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--h-ink-2);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.h-tab .material-icons-round {
  font-size: 18px;
}

.h-tab[aria-selected="true"] {
  background: var(--h-bg);
  color: var(--h-ink);
}

.h-panel {
  margin-top: 1rem;
  animation: hFade .25s var(--h-ease);
}

.h-panel[hidden] {
  display: none;
}

@keyframes hFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Search field */
.h-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--h-soft);
  border-radius: 999px;
  padding: 0.35rem;
  transition: background .2s;
}

.h-search:focus-within {
  background: var(--h-soft-2);
}

.h-search > .material-icons-round {
  font-size: 22px;
  color: var(--h-ink-3);
  margin: 0 0.25rem 0 0.85rem;
}

.h-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  color: var(--h-ink);
}

.h-search input::placeholder {
  color: var(--h-ink-3);
}

.h-search button {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
}

.h-search button .h-search__label {
  display: none;
}

/* Quick chips */
.h-chips {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.h-chips::-webkit-scrollbar {
  display: none;
}

.h-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: var(--h-soft);
  color: var(--h-ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.h-chip .material-icons-round {
  font-size: 16px;
  color: var(--h-ink-3);
  transition: color .2s;
}

.h-chip:hover {
  background: var(--h-accent-soft);
  color: var(--h-accent);
}

.h-chip:hover .material-icons-round {
  color: var(--h-accent);
}

.h-sell-text {
  color: var(--h-ink-2);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.h-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Hero visual (CSS only, desktop) */

/* =============================================
   2. MARCAS + ATALHOS
   ============================================= */
.h-brands {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76px;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -1.25rem;
  padding: 0 1.25rem;
}

.h-brands::-webkit-scrollbar {
  display: none;
}

.h-brand {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--h-ink-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.h-brand__logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--h-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s var(--h-ease);
}

.h-brand__logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.h-brand:hover .h-brand__logo {
  background: var(--h-soft-2);
  transform: translateY(-3px);
}

.h-brand:hover {
  color: var(--h-ink);
}

.h-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 2rem;
}

.h-shortcut {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border-radius: var(--h-radius-sm);
  background: var(--h-soft);
  color: var(--h-ink);
  text-decoration: none;
  transition: background .2s;
}

.h-shortcut .material-icons-round {
  font-size: 22px;
  color: var(--h-ink-2);
  transition: color .2s;
}

.h-shortcut strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.h-shortcut small {
  display: block;
  font-size: 0.75rem;
  color: var(--h-ink-3);
}

.h-shortcut:hover {
  background: var(--h-accent-soft);
}

.h-shortcut:hover .material-icons-round {
  color: var(--h-accent);
}

/* =============================================
   3. DESTAQUES
   ============================================= */
.h-arrows {
  display: none;
  gap: 0.4rem;
}

.h-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin: 0 -1.25rem;
  padding: 0 1.25rem 0.25rem;
  scroll-padding: 0 1.25rem;
}

.h-track::-webkit-scrollbar {
  display: none;
}

.h-track > * {
  scroll-snap-align: start;
  min-width: 0;
}

.h-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
  border-radius: var(--h-radius);
  background: var(--h-soft);
  color: var(--h-ink-2);
  text-align: center;
}

.h-empty .material-icons-round {
  font-size: 36px;
  color: var(--h-ink-3);
}

/* vcard: flat look only inside the home */
.h-featured {
  --cat-surface: var(--h-bg);
  --cat-border: transparent;
}

.h-featured .vcard {
  border-radius: var(--h-radius);
  background: transparent;
}

.h-featured .vcard::after {
  display: none;
}

.h-featured .vcard:hover {
  transform: none;
  box-shadow: none;
}

.h-featured .vcard--featured {
  background: transparent;
}

.h-featured .vcard__img-wrap {
  border-radius: var(--h-radius);
}

.h-featured .vcard__body {
  padding: 0.75rem 0.15rem 0;
}

/* =============================================
   4. VENDER (como funciona)
   ============================================= */
.h-sell {
  display: grid;
  gap: 2rem;
}

.h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--h-accent);
  margin-bottom: 0.6rem;
}

.h-eyebrow .material-icons-round {
  font-size: 16px;
}

.h-steps {
  display: grid;
  gap: 0.6rem;
  counter-reset: step;
}

.h-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--h-radius);
  background: var(--h-bg);
}

.h-step__icon {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--h-accent-soft);
  color: var(--h-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-step__icon .material-icons-round {
  font-size: 26px;
}

.h-step__icon::after {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--h-ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-step strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
}

.h-step span {
  display: block;
  font-size: 0.85rem;
  color: var(--h-ink-2);
  margin-top: 0.1rem;
}

.h-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  color: var(--h-ink-2);
  font-size: 0.85rem;
  font-weight: 600;
}

.h-perks span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.h-perks .material-icons-round {
  font-size: 18px;
  color: var(--h-accent);
}

/* =============================================
   5. PLANOS
   ============================================= */
.h-plan-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 1rem;
  background: var(--h-soft);
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}

.h-plan-tabs::-webkit-scrollbar {
  display: none;
}

.h-plan-tab {
  flex: 1;
  height: 38px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--h-ink-2);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.h-plan-tab[aria-selected="true"] {
  background: var(--h-bg);
  color: var(--h-ink);
}

.h-plans {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -1.25rem;
  padding: 0 1.25rem;
  scroll-padding: 0 1.25rem;
}

.h-plans::-webkit-scrollbar {
  display: none;
}

.h-plan {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--h-soft);
}

.h-plan--hot {
  background: var(--h-accent-soft);
}

.h-plan__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 26px;
}

.h-plan__name {
  font-size: 0.95rem;
  font-weight: 700;
}

.h-plan__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--h-bg);
  color: var(--h-ink-2);
  font-size: 0.7rem;
  font-weight: 700;
}

.h-plan--hot .h-plan__badge {
  background: var(--h-accent);
  color: #fff;
}

.h-plan__badge .material-icons-round {
  font-size: 13px;
}

.h-plan__price {
  margin-top: 0.85rem;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.h-plan__price sup {
  font-size: 0.95rem;
  font-weight: 700;
  vertical-align: top;
  margin-right: 0.15rem;
  position: relative;
  top: 0.35rem;
}

.h-plan__price small {
  font-size: 1rem;
  font-weight: 700;
}

.h-plan__price em {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--h-ink-2);
  letter-spacing: 0;
  margin-left: 0.15rem;
}

.h-plan__period {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--h-ink-2);
}

.h-plan__period .material-icons-round {
  font-size: 16px;
}

.h-plan__list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
  flex: 1;
}

.h-plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.h-plan__list .material-icons-round {
  font-size: 18px;
  color: var(--h-accent);
  flex-shrink: 0;
}

.h-plan__list li.is-off {
  color: var(--h-ink-3);
}

.h-plan__list li.is-off .material-icons-round {
  color: var(--h-ink-3);
}

.h-plan .h-btn {
  width: 100%;
}

.h-plan__note {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--h-ink-3);
}

.h-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  margin-top: 1.75rem;
  color: var(--h-ink-2);
  font-size: 0.8rem;
  font-weight: 600;
}

.h-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.h-trust .material-icons-round {
  font-size: 17px;
  color: var(--h-ink-3);
}

/* =============================================
   6. FAQ
   ============================================= */
.h-faq {
  display: grid;
  gap: 1.5rem;
}

.h-faq__list {
  display: grid;
  gap: 0.5rem;
}

.h-faq__item {
  border-radius: var(--h-radius-sm);
  background: var(--h-soft);
  transition: background .2s;
}

.h-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.93rem;
}

.h-faq__item summary::-webkit-details-marker {
  display: none;
}

.h-faq__item summary .material-icons-round {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--h-ink-3);
  transition: transform .25s var(--h-ease), color .2s;
}

.h-faq__item[open] summary .material-icons-round {
  transform: rotate(45deg);
  color: var(--h-accent);
}

.h-faq__item p {
  padding: 0 1.1rem 1.1rem;
  color: var(--h-ink-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* =============================================
   7. CTA FINAL
   ============================================= */
.h-cta {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
  border-radius: 24px;
  background: var(--h-ink);
  color: #fff;
}

.h-cta .h-title {
  color: #fff;
}

.h-cta p {
  color: rgba(255, 255, 255, .7);
  margin-top: 0.35rem;
}

.h-cta .h-btn--soft {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.h-cta .h-btn--soft:hover {
  background: rgba(255, 255, 255, .18);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (min-width: 600px) {
  .h-track {
    grid-auto-columns: calc((100% - 2.5rem - 1rem) / 2);
  }

  .h-plans {
    grid-auto-columns: calc((100% - 2.5rem - 0.85rem) / 2);
  }

  .h-shortcuts {
    grid-template-columns: repeat(3, 1fr);
  }

  .h-search button {
    width: auto;
    padding: 0 1.4rem;
  }

  .h-search button .h-search__label {
    display: inline;
  }
}

@media (min-width: 960px) {
  .h-wrap {
    padding: 0 2rem;
  }

  .h-section {
    padding: 4.5rem 0;
  }

  .h-hero {
    padding: calc(var(--navbar-height, 64px) + 3.5rem) 0 3.5rem;
  }

  .h-hero__grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 0;
  }

  .h-head {
    margin-bottom: 1.75rem;
  }

  .h-brands {
    grid-auto-flow: row;
    grid-template-columns: repeat(8, 1fr);
    grid-auto-columns: unset;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .h-brand__logo {
    width: 88px;
    height: 88px;
  }

  .h-brand__logo img {
    width: 50px;
    height: 50px;
  }

  .h-shortcuts {
    grid-template-columns: repeat(6, 1fr);
  }

  .h-arrows {
    display: inline-flex;
  }

  .h-track {
    margin: 0;
    padding: 0;
    scroll-padding: 0;
    gap: 1.25rem;
    grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
  }

  .h-sell {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    align-items: center;
  }

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

  .h-step {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .h-plan-tabs {
    display: none;
  }

  .h-plans {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: unset;
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 1rem;
  }

  .h-faq {
    grid-template-columns: 4fr 8fr;
    gap: 4rem;
  }

  .h-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 3rem;
  }
}

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