body[data-route="aplicativo"] .inner {
  max-width: 1220px;
}

.app-intro,
.app-gallery-section {
  --device-frame: #211a17;
  --device-frame-edge: #735d42;
  --device-screen: #17131e;
  --device-surface: #19151a;
  --device-panel: #2a1c18;
  --device-panel-deep: #130f10;
  --device-line: #5d4933;
  --device-muted: #6c5947;
  --device-accent: #d2b980;
  --device-soft: #30263e;
  --device-track: #352d35;
}

[data-theme="cosmos"] .app-intro,
[data-theme="cosmos"] .app-gallery-section {
  --device-frame: #071017;
  --device-frame-edge: #347b91;
  --device-screen: #07131d;
  --device-surface: #0b1d2a;
  --device-panel: #102b3b;
  --device-panel-deep: #07121b;
  --device-line: #25556a;
  --device-muted: #315d6c;
  --device-accent: #68d6df;
  --device-soft: #133648;
  --device-track: #18313e;
}

[data-theme="origens"] .app-intro,
[data-theme="origens"] .app-gallery-section {
  --device-frame: #24170f;
  --device-frame-edge: #9c6b42;
  --device-screen: #21150e;
  --device-surface: #2c1c12;
  --device-panel: #4a2d1a;
  --device-panel-deep: #1b100a;
  --device-line: #765033;
  --device-muted: #8c6546;
  --device-accent: #e39a53;
  --device-soft: #52301d;
  --device-track: #3b291d;
}

[data-theme="neutro"] .app-intro,
[data-theme="neutro"] .app-gallery-section {
  --device-frame: #c7d0d8;
  --device-frame-edge: #778897;
  --device-screen: #f5f7f9;
  --device-surface: #ffffff;
  --device-panel: #e3e9ee;
  --device-panel-deep: #f7f9fb;
  --device-line: #b7c2cb;
  --device-muted: #8796a3;
  --device-accent: #416f91;
  --device-soft: #dbe5ed;
  --device-track: #d2dae1;
}

.app-intro {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(480px, 1.22fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  min-height: 520px;
  padding: clamp(20px, 3vw, 42px) 0 clamp(60px, 8vw, 100px);
}

.app-intro-copy h2 {
  max-width: 650px;
  margin: 12px 0 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.app-intro-copy>p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.app-intro-copy ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.app-intro-copy li {
  position: relative;
  padding-left: 19px;
  color: var(--ivory);
  font-size: .92rem;
}

.app-intro-copy li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold-bright);
  transform: rotate(45deg);
}

.device-stage {
  position: relative;
  min-width: 0;
  min-height: 440px;
  isolation: isolate;
}

.device-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5% -4% 0 5%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 18%, transparent), transparent 68%);
  filter: blur(6px);
}

.desktop-device {
  position: absolute;
  top: 14px;
  right: 0;
  width: min(100%, 630px);
  filter: drop-shadow(0 28px 24px #0009);
}

.desktop-screen {
  display: grid;
  grid-template-columns: 19% 1fr;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 9px solid var(--device-frame);
  border-bottom-width: 18px;
  border-radius: 14px 14px 8px 8px;
  background: var(--device-screen);
  box-shadow: inset 0 0 0 1px var(--device-frame-edge), 0 0 0 1px color-mix(in srgb, var(--device-frame) 75%, #000);
}

.desktop-camera {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--device-muted);
}

.desktop-neck {
  width: 16%;
  height: 52px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--device-frame), var(--device-frame-edge) 48%, var(--device-frame));
  clip-path: polygon(25% 0, 75% 0, 88% 100%, 12% 100%);
}

.desktop-base {
  width: 35%;
  height: 10px;
  margin: -2px auto 0;
  border-radius: 50% 50% 3px 3px;
  background: linear-gradient(var(--device-frame-edge), var(--device-frame));
}

.mock-sidebar {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 52px 14px;
  border-right: 1px solid var(--device-line);
  background: linear-gradient(165deg, var(--device-panel), var(--device-panel-deep));
}

.mock-sidebar i {
  height: 8px;
  border-radius: 5px;
  background: var(--device-muted);
}

.mock-sidebar i:first-child {
  width: 82%;
  background: var(--device-accent);
}

.mock-desktop-content {
  padding: 17px;
  background: radial-gradient(circle at 80% 0, color-mix(in srgb, var(--device-accent) 18%, transparent), transparent 40%), var(--device-surface);
}

.mock-topbar {
  width: 46%;
  height: 8px;
  margin-left: auto;
  border-radius: 5px;
  background: var(--device-muted);
}

.mock-welcome {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 38%;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--device-line);
  border-radius: 9px;
  background: linear-gradient(120deg, var(--device-panel), var(--device-surface));
}

.mock-welcome>span {
  width: 54px;
  aspect-ratio: 1;
  flex: none;
  border: 2px solid var(--device-accent);
  border-radius: 50%;
  background: var(--device-muted);
}

.mock-welcome div {
  display: grid;
  width: 58%;
  gap: 10px;
}

.mock-welcome b,
.mock-welcome i {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: var(--device-accent);
}

.mock-welcome i {
  width: 70%;
  height: 6px;
  background: var(--device-muted);
}

.mock-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 13px;
}

.mock-panels i {
  aspect-ratio: 1.45;
  border: 1px solid var(--device-line);
  border-radius: 7px;
  background: linear-gradient(145deg, var(--device-panel), var(--device-surface));
}

.phone-device {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 0;
  width: clamp(150px, 28%, 190px);
  padding: 7px;
  border: 2px solid var(--device-frame-edge);
  border-radius: 29px;
  background: var(--device-frame);
  box-shadow: 0 25px 30px #0008, inset 0 0 0 1px color-mix(in srgb, var(--device-frame) 75%, #000);
  transform: rotate(2deg);
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 50%;
  width: 34%;
  height: 5px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--device-frame) 80%, #000);
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  aspect-ratio: 9 / 18.5;
  overflow: hidden;
  padding: 28px 10px 36px;
  border-radius: 21px;
  background: radial-gradient(circle at 90% 0, color-mix(in srgb, var(--device-accent) 22%, transparent), transparent 35%), var(--device-screen);
}

.mock-phone-head {
  display: flex;
  justify-content: space-between;
}

.mock-phone-head span,
.mock-phone-head i {
  width: 42%;
  height: 6px;
  border-radius: 4px;
  background: var(--device-accent);
}

.mock-phone-head i {
  width: 14px;
  background: var(--device-muted);
}

.mock-character {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--device-line);
  border-radius: 12px;
  background: linear-gradient(130deg, var(--device-soft), var(--device-surface));
}

.mock-character>i {
  width: 37px;
  aspect-ratio: 1;
  flex: none;
  border: 2px solid var(--device-accent);
  border-radius: 50%;
  background: var(--device-muted);
}

.mock-character div {
  display: grid;
  width: 100%;
  gap: 6px;
}

.mock-character b,
.mock-character span,
.mock-resources i,
.mock-session {
  display: block;
  height: 6px;
  border-radius: 5px;
  background: var(--device-accent);
}

.mock-character span {
  width: 70%;
  height: 4px;
  background: var(--device-muted);
}

.mock-resources {
  display: grid;
  gap: 6px;
}

.mock-resources i {
  height: 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--device-accent) 72%, #a73f45) 72%, var(--device-track) 72%);
}

.mock-resources i:nth-child(2) {
  background: linear-gradient(90deg, color-mix(in srgb, var(--device-accent) 65%, #5069b0) 58%, var(--device-track) 58%);
}

.mock-resources i:nth-child(3) {
  background: linear-gradient(90deg, var(--device-accent) 42%, var(--device-track) 42%);
}

.mock-session {
  height: 29%;
  border: 1px solid var(--device-line);
  border-radius: 10px;
  background: linear-gradient(145deg, var(--device-panel), var(--device-surface));
}

.mock-phone-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-around;
  padding: 11px;
  border-top: 1px solid var(--device-line);
  background: var(--device-panel);
}

.mock-phone-nav i {
  width: 13px;
  height: 13px;
  border: 2px solid var(--device-muted);
  border-radius: 4px;
}

.mock-phone-nav i:first-child {
  border-color: var(--device-accent);
}

.app-feature-section,
.app-gallery-section {
  padding: clamp(48px, 7vw, 84px) 0;
  border-top: 1px solid var(--line);
}

.app-download-action {
  display: flex;
  justify-content: center;
  margin: clamp(-54px, -5vw, -28px) 0 clamp(42px, 6vw, 72px);
}

.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.app-feature {
  min-height: 225px;
  padding: 25px 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--wood) 92%, #fff 2%), var(--wood));
  box-shadow: inset 0 1px #ffffff08;
}

.app-feature>span {
  color: var(--gold-bright);
  font: 600 .72rem var(--title);
  letter-spacing: .16em;
}

.app-feature h2 {
  margin: 33px 0 10px;
  font-size: 1.2rem;
}

.app-feature p,
.app-gallery-section .section-head>p {
  color: var(--muted);
  line-height: 1.6;
}

.app-shot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.app-shot {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  margin: 0;
  padding: 24px 18px 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--wood);
}

.app-shot-phone {
  position: relative;
  width: min(100%, 210px);
  padding: 8px;
  border: 2px solid var(--device-frame-edge);
  border-radius: 31px;
  background: var(--device-frame);
  box-shadow: 0 18px 28px #0007, inset 0 0 0 1px color-mix(in srgb, var(--device-frame) 75%, #000);
}

.app-shot-speaker {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 50%;
  width: 34%;
  height: 5px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--device-frame) 80%, #000);
  transform: translateX(-50%);
}

.app-shot-image {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 18.5;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
  background: var(--device-screen);
}

.app-shot figcaption {
  display: grid;
  gap: 5px;
  width: calc(100% + 36px);
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--ivory);
  font-family: var(--title);
}

.app-shot small {
  color: var(--muted);
  font: .78rem var(--ui);
}

@media (prefers-reduced-motion: no-preference) {
  .desktop-device {
    animation: app-device-in .8s cubic-bezier(.2, .75, .2, 1) both;
  }

  .phone-device {
    animation: app-phone-in .85s .12s cubic-bezier(.2, .75, .2, 1) both;
  }

  .app-feature,
  .app-shot,
  .app-shot-phone {
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  }

  .app-feature:hover,
  .app-shot:hover {
    transform: translateY(-5px);
    border-color: var(--bronze);
    box-shadow: 0 16px 28px #0005;
  }

  .app-shot:hover .app-shot-phone {
    transform: translateY(-3px) rotate(-1deg);
    border-color: var(--device-accent);
  }

  @keyframes app-device-in {
    from { opacity: 0; transform: translateX(28px) translateY(10px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes app-phone-in {
    from { opacity: 0; transform: translateX(28px) translateY(30px) rotate(7deg); }
    to { opacity: 1; transform: rotate(2deg); }
  }
}

@media (max-width: 940px) {
  .app-intro {
    grid-template-columns: 1fr;
  }

  .app-intro-copy {
    max-width: 720px;
  }

  .device-stage {
    width: min(100%, 700px);
    min-height: 460px;
    margin-inline: auto;
  }

  .app-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .app-intro {
    padding-top: 0;
  }

  .app-intro-copy ul,
  .app-feature-grid,
  .app-shot-grid {
    grid-template-columns: 1fr;
  }

  .device-stage {
    min-height: 340px;
  }

  .desktop-device {
    top: 0;
    width: 94%;
  }

  .phone-device {
    right: 0;
    width: 31%;
    min-width: 115px;
  }

  .desktop-neck {
    height: 36px;
  }

  .mock-desktop-content {
    padding: 10px;
  }

  .mock-sidebar {
    gap: 8px;
    padding: 35px 9px;
  }

  .app-feature {
    min-height: 0;
  }

  .app-feature h2 {
    margin-top: 18px;
  }

  .app-gallery-section .section-head {
    align-items: flex-start;
  }
}
