/* DeskWing site — plain CSS, no framework. Light/dark via prefers-color-scheme. */

:root {
  --bg: #f5f5f7;
  --bg-solid: #ffffff;
  --text: #1d1d1f;
  --muted: #4f4f55;
  --line: rgba(0, 0, 0, 0.1);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(40, 40, 80, 0.1);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --link: #0060c0;
  --btn: #0071e3;
  --btn-hover: #0062c4;
  --btn-text: #ffffff;
  --focus: #0071e3;
  --blob-1: #8db4ff;
  --blob-2: #d0a8ff;
  --blob-3: #ffb3cf;
  --blob-4: #8fe3d8;
  --blob-opacity: 0.55;
  --ok: #1a7f37;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090c;
    --bg-solid: #16161a;
    --text: #f5f5f7;
    --muted: #b0b0b8;
    --line: rgba(255, 255, 255, 0.12);
    --glass: rgba(28, 28, 34, 0.55);
    --glass-strong: rgba(32, 32, 40, 0.8);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 16px 48px rgba(0, 0, 0, 0.45);
    --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --link: #5aa9ff;
    --focus: #5aa9ff;
    --blob-1: #2f5bd8;
    --blob-2: #6b33c9;
    --blob-3: #b0336f;
    --blob-4: #1a7f78;
    --blob-opacity: 0.42;
    --ok: #4ac26b;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Soft colorful backdrop that the glass cards blur. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.backdrop span {
  position: absolute;
  border-radius: 50%;
  opacity: var(--blob-opacity);
  filter: blur(70px);
  animation: drift 26s ease-in-out infinite alternate;
}
.backdrop span:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: var(--blob-1); }
.backdrop span:nth-child(2) { width: 40vmax; height: 40vmax; right: -14vmax; top: 6vmax; background: var(--blob-2); animation-delay: -8s; }
.backdrop span:nth-child(3) { width: 34vmax; height: 34vmax; left: 18vmax; bottom: -16vmax; background: var(--blob-3); animation-delay: -15s; }
.backdrop span:nth-child(4) { width: 26vmax; height: 26vmax; right: 10vmax; bottom: 4vmax; background: var(--blob-4); animation-delay: -4s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .backdrop span { animation: none; }
}

img, svg { max-width: 100%; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 640px) {
  .container { padding-inline: 28px; }
}

/* Glass surface */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), var(--highlight);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-strong); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 10px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; }
.nav-links {
  display: none;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}
.nav-links a:hover { background: var(--line); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.lang-switch:hover { background: var(--line); }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-links + .nav-actions { margin-left: 8px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-secondary {
  background: var(--glass-strong);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--bg-solid); }
.btn-small { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.btn[aria-disabled="true"] {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
  cursor: default;
}

/* Sections */
section { padding-block: 72px; }
@media (min-width: 900px) {
  section { padding-block: 96px; }
}
.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 7vw, 68px); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 16px 0 0; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 40px; text-align: center; }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .lead { max-width: 640px; margin-inline: auto; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.hero-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.hero-figure {
  margin: 48px auto 0;
  max-width: 980px;
  padding: clamp(12px, 3vw, 32px);
}
.hero-figure svg { display: block; width: 100%; height: auto; }

/* Illustration colors */
.ill-bezel { fill: #1d1d1f; }
.ill-base { fill: #c9cad0; }
.ill-base-notch { fill: #a7a8ae; }
.ill-shadow { fill: rgba(30, 30, 60, 0.16); }
.ill-menubar { fill: rgba(255, 255, 255, 0.55); }
.ill-win { fill: rgba(255, 255, 255, 0.92); }
.ill-winbar { fill: rgba(235, 235, 240, 0.95); }
.ill-line { fill: rgba(60, 60, 70, 0.22); }
.ill-line-strong { fill: rgba(0, 113, 227, 0.75); }
.ill-dock { fill: rgba(255, 255, 255, 0.45); }
.ill-pen { stroke: #3a3a40; }
.ill-pen-tip { fill: #3a3a40; }
.ill-cable { stroke: #8e8e96; }
.ill-stroke { stroke: #0071e3; }
@media (prefers-color-scheme: dark) {
  .ill-bezel { fill: #000; }
  .ill-base { fill: #4a4a52; }
  .ill-base-notch { fill: #38383e; }
  .ill-shadow { fill: rgba(0, 0, 0, 0.45); }
  .ill-menubar { fill: rgba(20, 20, 26, 0.55); }
  .ill-win { fill: rgba(36, 36, 42, 0.94); }
  .ill-winbar { fill: rgba(52, 52, 60, 0.96); }
  .ill-line { fill: rgba(255, 255, 255, 0.2); }
  .ill-line-strong { fill: rgba(90, 169, 255, 0.85); }
  .ill-dock { fill: rgba(30, 30, 36, 0.5); }
  .ill-pen { stroke: #c9cad0; }
  .ill-pen-tip { fill: #c9cad0; }
  .ill-cable { stroke: #6a6a72; }
  .ill-stroke { stroke: #5aa9ff; }
}

/* Grids */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid { gap: 20px; }
}

.card { padding: 26px; }
.card p { margin: 8px 0 0; color: var(--muted); }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.card li + li { margin-top: 6px; }

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #4f8bff, #a56bff);
}
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--btn-text);
  background: var(--btn);
}

/* Comparison table */
.compare { padding: 8px; overflow: hidden; }
.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th,
.compare td {
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 17px; }
.compare tbody th { font-weight: 600; width: 26%; }
.compare td { color: var(--muted); }
.compare .tag {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
@media (min-width: 640px) {
  .compare table { font-size: 16px; }
  .compare th, .compare td { padding: 16px 20px; }
}
.footnote { margin: 16px auto 0; max-width: 720px; text-align: center; font-size: 15px; color: var(--muted); }

/* Requirements */
.req h3 { display: flex; align-items: center; gap: 10px; }
.tested {
  margin: 20px auto 0;
  max-width: 720px;
  padding: 16px 20px;
  text-align: center;
  font-size: 15px;
}

/* Pricing */
.pricing { max-width: 520px; margin-inline: auto; padding: 36px 28px; text-align: center; }
.price {
  margin: 18px 0 2px;
  font-size: clamp(44px, 9vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-sub { margin: 6px 0 0; color: var(--muted); }
.checklist {
  list-style: none;
  margin: 26px auto 28px;
  padding: 0;
  max-width: 360px;
  text-align: left;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-top: 10px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}
.stack { display: grid; gap: 10px; }
.small { font-size: 14px; color: var(--muted); }

/* Downloads */
.dl-card { display: flex; flex-direction: column; }
.dl-card .btn-group { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 18px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: 0.85; text-align: left; }
.store-badge span { text-align: left; line-height: 1.2; }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { padding: 0; border-radius: 18px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  position: relative;
  font-weight: 600;
  font-size: 17px;
  border-radius: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p { margin: 0; }
.faq .answer p + p { margin-top: 10px; }

/* Footer */
.site-footer { padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.site-footer p { margin: 0; }

/* Legal pages */
.legal { max-width: 780px; margin-inline: auto; padding: 32px 24px; }
@media (min-width: 640px) {
  .legal { padding: 48px 56px; }
}
.legal-wrap { padding-block: 40px 24px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin: 32px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-top: 8px; }
.draft-note {
  margin: 0 0 28px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #c98a00;
  background: rgba(255, 196, 0, 0.16);
  color: var(--text);
  font-weight: 600;
}
.placeholder { background: rgba(255, 196, 0, 0.25); padding: 0 4px; border-radius: 4px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound .card { max-width: 560px; padding: 40px 28px; }

/* Modo "em breve" (build-site.py) */
.is-soon { opacity: .6; cursor: default; pointer-events: none; }
