@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk-latin.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --base: #0b1014;
  --stage: #111a20;
  --surface: #152229;
  --rule: #2b3b42;
  --ink: #f1f7f5;
  --body: #b9c9cd;
  --quiet: #9fb2b8;
  --accent: #66efae;
  --accent-hover: #a5ffce;
  --button-ink: #092419;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --gutter: clamp(1.125rem, 4.5vw, 4rem);
  --space: clamp(4rem, 8vw, 7.5rem);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 6rem; scrollbar-color: #476066 var(--base); }
body { margin: 0; background: var(--base); color: var(--ink); font: 1rem/1.65 var(--sans); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; }
h1, h2 { letter-spacing: -.038em; }
h1 { font-size: clamp(3rem, 4.85vw, 4.75rem); line-height: 1.02; }
h1 em { color: var(--accent); font-style: normal; }
h2 { font-size: clamp(2.3rem, 4.6vw, 4.5rem); line-height: 1.04; text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { color: var(--body); max-width: 66ch; }
a { color: var(--accent); text-underline-offset: .25em; }
button { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--button-ink); }

.wrap { width: min(80rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--space); }
.section-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 7vw, 7rem); }
.section-intro { margin-top: 1.25rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--base);
  border-bottom: 1px solid var(--rule);
}
.nav, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav { min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; width: clamp(10rem, 15vw, 12.5rem); height: auto; }
.navlinks { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.navlinks > a:not(.button) { color: var(--body); font-size: .93rem; text-decoration: none; }
.navlinks > a:not(.button):hover { color: var(--ink); }

.button, .menu-toggle, .rail-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .7rem 1.15rem;
  gap: .75rem;
  border: 1px solid #3d535c;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: 650 .94rem/1.35 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s, background-color .18s, color .18s;
}
.button:hover, .menu-toggle:hover, .rail-control:not(:disabled):hover { border-color: var(--accent); }
.button.primary { background: var(--accent); color: var(--button-ink); border-color: transparent; }
.button.primary:hover { background: var(--accent-hover); }
.button.primary::after {
  content: "";
  width: .45rem;
  height: .45rem;
  flex: 0 0 .45rem;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.menu-toggle { display: none; }
.text-link, .expand { display: inline-flex; min-height: 44px; align-items: center; gap: .65rem; color: var(--ink); font-weight: 600; }
.text-link:hover, .expand:hover { color: var(--accent); }
.out { width: .66em; height: .66em; position: relative; border-top: 1.5px solid; border-right: 1.5px solid; }
.out::after { content: ""; position: absolute; top: 0; right: 0; width: .91em; border-top: 1.5px solid; transform-origin: right top; transform: rotate(-45deg); }

.hero {
  padding-block: clamp(2.75rem, 5.3vw, 5rem) clamp(2.5rem, 5vw, 4.5rem);
  background: radial-gradient(ellipse at 68% 57%, #15382f 0%, var(--base) 72%);
}
.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.75rem, 4vw, 4rem);
  margin-bottom: clamp(2rem, 4vw, 3.6rem);
}
.hero-copy > p { max-width: 38ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; align-items: center; margin-top: 1.25rem; }
.actions .text-link { font-size: .9rem; }

.terminal { min-width: 0; }
.screen { border: 1px solid #3e5861; border-radius: 14px; background: #101820; overflow: clip; }
.screen-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  padding: .4rem .8rem .4rem 1.15rem;
  background: var(--stage);
  border-bottom: 1px solid var(--rule);
}
.screen-name { color: var(--ink); font-size: .9rem; font-weight: 650; }
.screen-views { display: flex; flex-wrap: wrap; gap: .2rem; }
.screen-views a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .75rem;
  color: var(--body);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.screen-views a:hover { background: var(--surface); color: var(--ink); }
.screen-views a[aria-current] { background: #213b35; color: var(--accent-hover); }
.screen-views a:focus-visible { outline-offset: -2px; }
.screen-head .expand { padding-inline: .65rem; border-left: 1px solid var(--rule); font-size: .85rem; text-decoration: none; }
.screen img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 870; object-fit: contain; }
.screen-footer { display: flex; align-items: center; justify-content: space-between; gap: .4rem 1.25rem; padding-top: .35rem; color: var(--quiet); font-size: .86rem; }

.technology { border-block: 1px solid var(--rule); background: var(--stage); }
.strategy-layout { display: grid; align-items: start; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 7vw, 7rem); }
.strategy-intro h2 { text-wrap: initial; }
.strategy-intro p { max-width: 34ch; margin-top: 1.15rem; }
.strategy-art { display: block; width: min(58%, 12rem); height: auto; margin-top: 1.5rem; }
.usage-options { border-top: 1px solid var(--rule); }
.usage-options article {
  display: grid;
  grid-template-columns: minmax(8.5rem, .36fr) minmax(0, 1fr);
  align-items: baseline;
  gap: .5rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(1.25rem, 2.6vw, 2.2rem);
}
.usage-options h3 { font-size: clamp(1.25rem, 2.1vw, 1.85rem); color: var(--accent); }
.usage-benefit { margin-bottom: .35rem; color: var(--ink); font-weight: 650; }
.mode-requirements { margin-top: 1.15rem; color: var(--quiet); font-size: .9rem; }

.feedback-top { display: grid; align-items: end; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 1.75rem 5rem; }
.feedback-top h2 { max-width: 13ch; }
.feedback-quote { border-left: 1px solid var(--accent); padding-left: 1.35rem; }
.feedback-quote blockquote { font: 700 clamp(1.2rem, 2.3vw, 1.8rem)/1.2 var(--display); }
.feedback-quote figcaption { margin-top: .5rem; color: var(--quiet); font-size: .88rem; }
.gallery-switch { display: flex; gap: 1rem; border-bottom: 1px solid var(--rule); margin-top: 2.5rem; }
.gallery-switch button {
  min-height: 44px;
  padding: .5rem .35rem;
  background: none;
  color: var(--body);
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 650;
}
.gallery-switch button:hover { color: var(--ink); }
.gallery-switch button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.gallery-switch span { margin-left: .25rem; font-size: .77em; font-variant-numeric: tabular-nums; }
.gallery { margin-top: 1.25rem; }
.gallery-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.gallery-header p { margin-top: .25rem; font-size: .9rem; }
.rail-controls { display: flex; flex-shrink: 0; gap: .4rem; }
.rail-control { width: 44px; min-height: 44px; padding: 0; color: var(--accent); }
.rail-control::before { content: ""; width: .5rem; height: .5rem; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.rail-control:first-child::before { transform: rotate(-135deg); }
.rail-control:disabled { opacity: .38; cursor: default; }
.media-rail {
  display: flex;
  --tile-width: calc(25% - .75rem);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: .35rem;
  padding: .35rem .35rem .9rem;
  margin: .8rem -.35rem 0;
  scrollbar-color: #476066 transparent;
}
.media-tile { flex: 0 0 var(--tile-width); min-width: 0; scroll-snap-align: start; }
.media-tile a { display: block; border-radius: 12px; }
.media-tile img, .media-tile video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 15;
  object-fit: contain;
  background: var(--stage);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.media-tile a:hover img { border-color: var(--accent); }
.testimonial-note, .requirements, .risk-note { margin-top: 1rem; color: var(--quiet); font-size: .86rem; }
.feedback-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
  padding-top: 1.4rem;
}
.feedback-action .button { flex-shrink: 0; }

#como-funciona { border-top: 1px solid var(--rule); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: .75rem; border-top: 1px solid var(--rule); padding: 1.35rem 0; }
.step::before { content: counter(step, decimal-leading-zero); color: var(--accent); font: 700 1.2rem/1.4 var(--display); font-variant-numeric: tabular-nums; }
.step p { margin-top: .3rem; }
.faq-section { background: var(--stage); border-block: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding-block: .65rem; list-style: none; cursor: pointer; font-weight: 650; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; margin-right: .35rem; width: .5rem; height: .5rem; border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: translateY(-.14rem) rotate(45deg); }
.faq details[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.faq details p { margin: 0 1.35rem 1.15rem 0; }

.contact { padding-block: var(--space); }
.contact-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.75rem 3rem;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  background: #183a31;
  border-radius: 14px;
}
.contact-panel h2 { max-width: 19ch; text-wrap: initial; }
.contact-panel p { max-width: 52ch; margin-top: 1rem; }
.contact-links { flex-shrink: 0; }
.site-footer { padding-bottom: 2rem; }
.footer-inner { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.footer-inner p { color: var(--quiet); font-size: .86rem; }
.risk-note { max-width: 80rem; }

.feedback-open { overflow: hidden; }
.feedback-open body { position: fixed; top: var(--feedback-scroll-top); width: 100%; }
.feedback-viewer {
  width: min(96vw, 80rem);
  height: min(94vh, 60rem);
  height: min(94dvh, 60rem);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  background: var(--stage);
  color: var(--ink);
  border: 1px solid #476066;
  border-radius: 12px;
  overflow: hidden;
}
.feedback-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.feedback-viewer::backdrop { background: #060a0ded; }
.feedback-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 1rem; border-bottom: 1px solid var(--rule); }
.feedback-viewer-header h2 { font: 650 1rem/1.35 var(--sans); letter-spacing: 0; }
.feedback-viewer-content { min-height: 0; padding: .6rem; }
.feedback-viewer-content img { display: block; width: 100%; height: 100%; object-fit: contain; }
.feedback-viewer-error { padding: 1rem; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { min-height: 4.2rem; }
  .navlinks {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: .75rem var(--gutter) 1rem;
    background: var(--stage);
    border-bottom: 1px solid var(--rule);
  }
  .navlinks.open { display: flex; }
  .navlinks > a:not(.button) { display: flex; align-items: center; min-height: 44px; }
  .hero-intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-copy > p { max-width: 55ch; }
  .media-rail { --tile-width: calc(50% - .5rem); }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 5rem; }
  h1 { font-size: clamp(2.45rem, 9vw, 3.65rem); }
  .hero-intro { margin-bottom: 1.55rem; }
  .hero-copy > p { font-size: 1rem; }
  .actions { margin-top: .9rem; }
  .screen-head { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .4rem; padding: .25rem .55rem .35rem; }
  .screen-name { padding-inline: .35rem; font-size: .83rem; }
  .screen-views { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--rule); padding-top: .25rem; }
  .screen-views a { padding-inline: .45rem; font-size: .8rem; }
  .screen-head .expand { grid-column: 2; grid-row: 1; padding-inline: .35rem; border: 0; }
  .screen-footer { flex-wrap: wrap; }
  .strategy-layout, .feedback-top, .section-split { grid-template-columns: 1fr; gap: 1.75rem; }
  .strategy-intro h2 br { display: none; }
  .strategy-art { display: none; }
  .usage-options article { grid-template-columns: 1fr; }
  .usage-options h3 { font-size: 1.5rem; }
  .gallery-header { flex-wrap: wrap; }
  .gallery-switch { margin-top: 1.5rem; }
  .media-rail { --tile-width: 87%; gap: .75rem; }
  .feedback-action, .contact-panel { flex-direction: column; align-items: start; }
  .footer-inner { flex-wrap: wrap; gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.plan-section { background: var(--stage); border-bottom: 1px solid var(--rule); }
.plan-options {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: clamp(1.75rem, 4vw, 3rem) 0 0;
}
.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--base);
}
.plan-featured { border-color: var(--accent); background: #183a31; }
.plan-featured h3, .plan-featured .plan-detail b { color: var(--accent); }
.plan-price { margin-top: .75rem; font-size: .92rem; font-variant-numeric: tabular-nums; }
.plan-price strong {
  color: var(--ink);
  font: 700 clamp(1.8rem, 3vw, 2.75rem)/1.1 var(--display);
  letter-spacing: -.035em;
  white-space: nowrap;
}
.plan-detail { margin: .75rem 0 1.5rem; color: var(--body); font-size: .9rem; }
.plan-card .button { width: 100%; margin-top: auto; }
@media (max-width: 760px) {
  .plan-options { grid-template-columns: 1fr; }
}
