/* ==========================================================================
   Amani, landing (redesign guiado pela tasteskill / design-taste-frontend)

   Design read: landing de app de finanças pessoais para consumidor
   brasileiro, linguagem calma e confiável, CSS nativo + Geist.
   Dials: DESIGN_VARIANCE 6 / MOTION_INTENSITY 4 / VISUAL_DENSITY 4.

   Sistema de formas (documentado, aplicado em tudo):
   - interativos (botões, badges): pill (999px)
   - containers (células, planos, linhas de instalação): 20px
   - screenshots dentro de containers: 12px

   Cor: um acento só (o violeta do app). Neutros levemente frios.
   Tema: segue prefers-color-scheme (escuro e claro).
   z-index: 1 = conteúdo, 50 = nav, 100 = skip-link.
   ========================================================================== */

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

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #121016;
  --bg-glow: rgba(185, 140, 242, 0.09);
  --surface: #1a1820;
  --surface-2: #211e29;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f0f5;
  --text-dim: #b6b0c0;
  --text-muted: #8f899b;
  --accent: #b98cf2;
  --accent-hover: #c7a2f5;
  --accent-ink: #1a1022;
  --accent-soft: rgba(185, 140, 242, 0.12);
  --accent-line: rgba(185, 140, 242, 0.4);
  --shadow: 0 30px 60px -30px rgba(10, 6, 20, 0.8);
  --nav-bg: rgba(18, 16, 22, 0.78);

  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --r-pill: 999px;
  --r-box: 20px;
  --r-img: 12px;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg: #f6f5f8;
    --bg-glow: rgba(111, 63, 214, 0.07);
    --surface: #fcfbfd;
    --surface-2: #efedf3;
    --border: rgba(23, 20, 29, 0.09);
    --border-strong: rgba(23, 20, 29, 0.16);
    --text: #17141d;
    --text-dim: #4a4555;
    --text-muted: #686273;
    --accent: #6f3fd6;
    --accent-hover: #5f31c2;
    --accent-ink: #fbfaff;
    --accent-soft: rgba(111, 63, 214, 0.08);
    --accent-line: rgba(111, 63, 214, 0.35);
    --shadow: 0 30px 60px -32px rgba(60, 40, 110, 0.35);
    --nav-bg: rgba(246, 245, 248, 0.82);
  }
}

/* ---------- base ---------- */

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100dvh;
  background:
    radial-gradient(60rem 36rem at 8% -6%, var(--bg-glow), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

.ph {
  flex-shrink: 0;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

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

#nav-sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 1px;
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 560;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.btn .ph {
  font-size: 1.1em;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.btn-ghost {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.btn[disabled] {
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  background: transparent;
  border-color: var(--border);
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 3.1rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 540;
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.nav.scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 640;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-pill);
  color: var(--text-dim);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-links .btn {
  margin-left: 0.5rem;
}

/* ---------- hero (split assimétrico: texto à esquerda, produto à direita) ---------- */

.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

/* ---------- títulos de seção ---------- */

.section-title {
  max-width: 22ch;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-lede {
  margin-top: 1rem;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  border: 1px solid var(--border);
  border-radius: var(--r-box);
}

.plan--pro {
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
}

.plan .btn {
  margin-top: auto;
}

.plan-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan h3 {
  font-size: 1.25rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.plan-badge {
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-top: 0.9rem;
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.plan-cur {
  font-size: 0.42em;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0;
}

.plan-period {
  font-family: var(--font-sans);
  font-size: 0.34em;
  font-weight: 450;
  color: var(--text-muted);
  letter-spacing: 0;
}

.plan-alt {
  margin-top: 0.7rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.plan-alt [data-price] {
  color: var(--text);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}

.plan-list {
  display: grid;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.plan-list .ph {
  margin-top: 0.22em;
  font-size: 1.05rem;
}

.plan-list .ok {
  color: var(--accent);
}

.plan-list .off {
  color: var(--text-muted);
}

.os {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem clamp(1.4rem, 2.4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--r-box);
  transition: border-color 0.3s var(--ease);
}

.os-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.os-name .ph {
  font-size: 1.6rem;
  color: var(--accent);
}

.os-name h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.os-match {
  display: none;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.os-steps {
  counter-reset: step;
  display: grid;
  gap: 0.35rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.os-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
}

.os-steps li::before {
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.os-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.os-note {
  flex-basis: 100%;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: right;
}

.os--match {
  border-color: var(--accent-line);
  background:
    linear-gradient(90deg, var(--accent-soft), transparent 60%),
    var(--surface);
}

.os--match .os-match {
  display: inline-block;
}

/* ---------- rodapé ---------- */

.footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-block: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.brand--footer {
  color: var(--text);
  font-size: 1rem;
  gap: 0.5rem;
}

.brand--footer .brand-logo {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-left: auto;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- movimento (MOTION_INTENSITY 4: entrada do hero + reveal ao rolar) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.9s var(--ease) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
  }

  .hero-art {
    animation: rise-shot 1.1s var(--ease) 0.2s both;
  }

  .js-motion [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.8s var(--ease),
      transform 0.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .js-motion [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

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

  .btn,
  .btn:hover,
  .btn:active {
    transition: none;
    transform: none;
  }
}

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

@keyframes rise-shot {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsivo (colapsos explícitos por seção) ---------- */

@media (max-width: 1023px) {

  .os {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .os-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .os-note {
    text-align: left;
  }
}

@media (max-width: 767px) {
  .nav-link {
    display: none;
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .os {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .os-actions {
    grid-column: auto;
  }

  .os-actions .btn {
    flex: 1 1 auto;
  }

  .footer-links {
    margin-left: 0;
  }
}

/* =====================================================================
   LAYOUT 2 (nov/2026): hero centralizado com palco do produto, passos,
   vitrines alternadas, grade de módulos, planos centralizados
   ===================================================================== */

.eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head .section-title {
  margin-top: 0.75rem;
}

.section-head--center {
  text-align: center;
}

.section-head--center .section-title,
.section-head--center .section-lede {
  margin-inline: auto;
}

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

.hero {
  position: relative;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(1100px, 120vw);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 520;
  transition: background-color 0.3s var(--ease);
}

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

.hero-eyebrow:hover {
  background: var(--accent-line);
}

.hero-title {
  max-width: 13ch;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.hero-lede {
  max-width: 46ch;
  margin-top: 1.4rem;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-copy .cta-row {
  justify-content: center;
}

.hero-web {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.hero-phone {
  position: absolute;
  right: 0;
  bottom: -9%;
  width: 22%;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 30px;
  background: #0c0b0f;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 60px -25px rgba(10, 6, 20, 0.65);
}

.hero-phone img {
  display: block;
  width: 100%;
  border-radius: 24px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.platforms li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.platforms .ph {
  font-size: 1.15em;
}

/* ---------- como funciona ---------- */

.steps {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-block: 1px solid var(--border);
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.5rem;
  list-style: none;
}

.steps-list h3 {
  margin-top: 0.9rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.steps-list p {
  margin-top: 0.4rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- recursos: vitrines alternadas ---------- */

.features {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(3rem, 6vw, 5rem);
}

/* arte em HTML do cartão + fatura */
.art-card {
  position: relative;
  width: min(100%, 25rem);
  padding-top: 3.5rem;
}

.art-card-face {
  position: absolute;
  top: 0;
  left: 8%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 58%;
  aspect-ratio: 1.586;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(135deg, #7c4ddf, #3d1f86);
  color: #f4efff;
  box-shadow: 0 24px 40px -18px rgba(60, 30, 130, 0.75);
  transform: rotate(-6deg);
}

.art-card-chip {
  width: 2rem;
  height: 1.45rem;
  border-radius: 5px;
  background: linear-gradient(135deg, #e9d9a6, #b99c55);
}

.art-card-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.art-panel {
  position: relative;
  display: grid;
  margin-top: 5rem;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
}

.art-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
}

.art-row + .art-row {
  border-top: 1px solid var(--border);
}

.art-row--head {
  padding-top: 1.1rem;
  font-weight: 600;
}

.art-row small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.art-row em {
  margin-left: 0.3rem;
  padding: 0 0.4rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-style: normal;
}

.art-row b {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.art-bar {
  height: 6px;
  margin: 0 1.1rem 0.9rem;
  border-radius: var(--r-pill);
  background: var(--border-strong);
  overflow: hidden;
}

.art-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

/* ---------- grade de módulos ---------- */

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(4rem, 8vw, 6.5rem);
  border: 1px solid var(--border);
  border-radius: var(--r-box);
  background: var(--surface);
  overflow: hidden;
}

.module {
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border-color: var(--border);
  border-style: solid;
  border-width: 0 0 1px 1px;
}

.module:nth-child(3n + 1) {
  border-left-width: 0;
}

.module:nth-last-child(-n + 3) {
  border-bottom-width: 0;
}

.module h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.module h3 .ph {
  font-size: 1.25rem;
  color: var(--accent);
}

.module p {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ---------- planos ---------- */

.plans {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 880px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}

/* ---------- instalar ---------- */

.install {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(5rem, 10vw, 8rem);
}

.install-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.install-list > .os {
  order: 2;
}

.install-list > .os--match {
  order: 1;
}

.install-list > [data-os-card="web"] {
  order: 0;
  grid-column: 1 / -1;
}

.install-list > .os:not([data-os-card="web"]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
}

.install-list > .os:not([data-os-card="web"]) .os-actions {
  justify-content: flex-start;
  margin-top: auto;
}

.install-list > .os:not([data-os-card="web"]) .os-note {
  text-align: left;
}

/* ---------- responsivo ---------- */

@media (max-width: 1023px) {
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module:nth-child(n) {
    border-width: 0 0 1px 1px;
  }

  .module:nth-child(2n + 1) {
    border-left-width: 0;
  }

  .module:nth-last-child(-n + 2) {
    border-bottom-width: 0;
  }

  .install-list > [data-os-card="web"] .os-actions {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .hero-phone {
    padding: 4px;
    border-radius: 22px;
  }

  .hero-phone img {
    border-radius: 18px;
  }

  .platforms {
    gap: 0.6rem 1.1rem;
    font-size: 0.85rem;
  }

  .steps-list {
    grid-template-columns: 1fr;
  }

  .modules {
    grid-template-columns: 1fr;
  }

  .module:nth-child(n) {
    border-width: 0 0 1px 0;
  }

  .module:last-child {
    border-bottom-width: 0;
  }

  .plans-grid,
  .install-list {
    grid-template-columns: 1fr;
  }

  .install-list > [data-os-card="web"] .os-actions {
    grid-column: auto;
  }
}

/* ---------- recursos: grade de 4 blocos (arte em HTML + texto) ---------- */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.feat {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-box);
  background: var(--surface);
}

.feat--wide {
  grid-column: span 7;
}

.feat-art {
  display: grid;
  place-items: center;
  height: 29rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%),
    var(--surface-2);
}

.feat-body {
  padding: clamp(1.4rem, 2.4vw, 2rem);
}

.feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.feat-tag .ph {
  font-size: 1.15rem;
}

.feat-body h3 {
  margin-top: 0.6rem;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.feat-body > p:not(.feat-tag) {
  margin-top: 0.7rem;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.feat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1.1rem;
  list-style: none;
  font-size: 0.92rem;
}

.feat-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.feat-list .ph {
  flex: none;
  color: var(--accent);
}

/* peças comuns às artes */
.art-form,
.art-shared {
  width: min(100%, 24rem);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
}

.is-in {
  color: #2fb67c;
}

/* nova transação */
.art-form {
  display: grid;
  gap: 0.55rem;
  padding: 1.1rem;
}

.art-form-head {
  font-size: 0.92rem;
  font-weight: 600;
}

.art-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.74rem;
  text-align: center;
}

.art-seg span {
  padding: 0.35rem 0;
  border-radius: 8px;
}

.art-seg .is-on {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.art-amount {
  padding: 0.5rem 0 0.25rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-align: center;
}

.art-amount small {
  margin-right: 0.3rem;
  color: var(--text-muted);
  font-size: 0.45em;
  letter-spacing: 0;
}

.art-label {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.art-label em {
  color: var(--accent);
  font-style: normal;
}

.art-input {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  background: var(--surface-2);
}

.art-caret {
  width: 1px;
  height: 1em;
  margin-left: 1px;
  background: var(--accent);
}

.art-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.art-chips span {
  padding: 0.3rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.72rem;
}

.art-chips .is-on {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.art-form-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.3rem;
}

.art-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.76rem;
  font-weight: 600;
}

/* compartilhado */
.art-shared {
  padding: 1.1rem;
}

.art-shared-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.art-shared-head strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.art-avatars {
  display: flex;
}

.art-avatars i + i {
  margin-left: -0.35rem;
}

.art-shared i {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
}

.art-shared i.is-alt,
.art-avatars i + i {
  background: #2fb67c;
  color: #06140d;
}

.art-split {
  display: flex;
  gap: 3px;
  height: 6px;
  margin: 0.9rem 0 1rem;
}

.art-split span {
  border-radius: var(--r-pill);
  background: var(--accent);
}

.art-split span + span {
  background: #2fb67c;
}

.art-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.art-person {
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.art-who {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.art-who i {
  width: 1.4rem;
  height: 1.4rem;
  border-width: 0;
  font-size: 0.55rem;
}

.art-person strong {
  margin: 0.2rem 0 0.15rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.art-kv {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.art-kv b {
  white-space: nowrap;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* tela inicial do Android com os widgets (sempre escura, é o papel de parede) */
.feat-art:has(.art-home) {
  padding: 0;
  background: none;
}

.art-home {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 100%;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 5vw, 4rem);
  background:
    radial-gradient(80% 70% at 15% 10%, rgba(140, 80, 240, 0.75), transparent 60%),
    radial-gradient(70% 70% at 90% 100%, rgba(20, 150, 170, 0.6), transparent 60%),
    #120d1f;
  color: #f2eefa;
  font-size: 0.8rem;
}

.art-status {
  display: flex;
  justify-content: space-between;
  opacity: 0.75;
  font-size: 0.72rem;
}

.art-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(16, 12, 24, 0.72);
  backdrop-filter: blur(8px);
  color: rgba(242, 238, 250, 0.7);
  font-size: 0.72rem;
}

.art-widget strong {
  display: block;
  margin-top: 0.15rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
}

.art-widget small {
  display: block;
  color: #ff7a8a;
  font-size: 0.68rem;
}

.art-widget strong.is-in {
  color: #3ed497;
}

.art-widget-actions {
  display: grid;
  gap: 0.35rem;
}

.art-widget-actions i {
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.7rem;
  font-style: normal;
  text-align: center;
}

.art-widget-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
}

.art-widget-row .art-widget strong {
  font-size: 1rem;
}

.art-widget--fab {
  justify-content: center;
  width: 3.6rem;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #b98cf2, #7c4ddf);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px -8px rgba(140, 80, 240, 0.8);
}

.art-widget--fab {
  aspect-ratio: 1;
  align-self: center;
}

.art-apps {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding: 0 0.5rem;
}

.art-apps i {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.art-apps i:nth-child(1) {
  background: #d9485a;
}

.art-apps i:nth-child(2) {
  background: #2fa866;
}

.art-apps i:nth-child(3) {
  background: #3b78e0;
}

.art-apps .is-amani {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #b98cf2, #7c4ddf);
  color: #fff;
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 1023px) {
  .feat,
  .feat--wide {
    grid-column: span 12;
  }
}

@media (max-width: 767px) {
  .feat-art {
    height: auto;
    min-height: 20rem;
  }

  .art-home {
    padding: 1.25rem;
  }

  .art-widget-row {
    grid-template-columns: 1fr auto;
  }

  .art-widget--locked {
    display: none;
  }

  .art-kv {
    flex-direction: column;
    gap: 0;
  }

  .art-shared,
  .art-person {
    padding: 0.85rem;
  }
}
