/* Emily Remote Desktop — accessible light/dark presentation layer. */
:root {
  --bg: #ffffff;
  --s: #ffffff;
  --s2: #edf2f8;
  --line: #d9e1eb;
  --text: #152238;
  --muted: #5d6d84;
  --red: #ff6a00;
  --red2: #f45200;
  --green: #18a957;
  color-scheme: light;
}

html[data-theme="light"] {
  --bg: #ffffff !important;
  --s: #ffffff;
  --s2: #edf2f8;
  --line: #d9e1eb;
  --text: #152238;
  --muted: #5d6d84;
}

html[data-theme="dark"] {
  --bg: #090a0e !important;
  --s: #111319;
  --s2: #171a22;
  --line: #292d38;
  --text: #f6f7fb;
  --muted: #a8adba;
  --red: #ff6a00;
  --red2: #ff963e;
  --green: #42de90;
  color-scheme: dark;
}

body { background: var(--bg); transition: background-color .24s ease, color .24s ease; }
.nav { border-bottom-color: var(--line); }
.links { color: var(--muted); }
.links a:hover { color: var(--text); }
.links .chip { border-color: var(--line); color: var(--text); }
.mark { filter: drop-shadow(0 8px 12px #ff6a0033); }
.hero:before { background: radial-gradient(circle, #ff6a0026, transparent 66%); }
.btn { border-color: var(--line); background: var(--s); color: var(--text); }
.android-download .btn { background: var(--s2); border-color: var(--line); }
.primary { background: linear-gradient(135deg, #ff8a00, #f45200); border-color: #ff6a00; color: #fff; box-shadow: 0 12px 30px #ff6a0040; }
.micro { color: var(--muted); }
.window, .card, .toolbox, .finalbox { background: var(--s); border-color: var(--line); box-shadow: 0 24px 65px #1b2a3a1d; }
.chrome, .side, .flow, .trust { background: var(--s2); border-color: var(--line); }
.chrome small, .label, .ready, .session, .tool span, .card p, .step p, .trustgrid span { color: var(--muted); }
.stage { background: linear-gradient(145deg, #ffffff, #eef4fa); }
html[data-theme="dark"] .stage { background: linear-gradient(145deg, #151821, #0d0f14); }
.side { border-right-color: var(--line); }
.item { color: var(--muted); }
.item.on { background: linear-gradient(135deg, #ff8a00, #f45200); }
.id, .tool { background: var(--s2); border-color: var(--line); }
.connect .fake { border-color: var(--line); color: var(--muted); background: var(--s); }
.connect b { background: linear-gradient(135deg, #ff8a00, #f45200); color: #fff; }
.session { border-color: var(--line); background: var(--s); }
.trust { border-block-color: var(--line); }
.trustgrid div { border-right-color: var(--line); }
.flow { border-block-color: var(--line); }
.step .badge { border-color: var(--line); background: var(--s); color: var(--text); }
.step:first-child .badge { background: linear-gradient(135deg, #ff8a00, #f45200); border-color: #ff6a00; color: #fff; }
.version { background: linear-gradient(135deg, #ff8a00, #f45200); border-color: #ff6a00; color: #fff; }

.theme-toggle {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--s); color: var(--text);
  font-size: 1.15rem; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(12deg); box-shadow: 0 8px 18px #ff6a002b; }
.theme-toggle:focus-visible { outline: 3px solid #ff9c5266; outline-offset: 3px; }
@media (max-width:1280px) { .links { gap:14px; } }
@media (max-width:560px) {
  .nav { height: auto; min-height: 72px; gap: 8px; }
  .brand { gap: 5px; min-width: 0; }
  .site-logo { width: 30px; height: 30px; }
  #brandText { font-size: .8rem; white-space: nowrap; }
  .links { margin-left: auto; gap: 6px; font-size: .72rem; white-space: nowrap; }
  .links a:not(.chip) { display: none; }
  .links a[href="portal#login"] { display: inline-flex; padding: 8px 7px; color: var(--text); }
  .links .chip { padding: 8px 9px; }
  .theme-toggle { width: 34px; height: 34px; font-size: 1rem; }
}

/* Página inicial: o download é a ação principal e deve caber no primeiro visor do celular. */
@media (min-width: 601px) {
  .hero { min-height: 590px; padding: 48px 0 58px; gap: 42px; }
  .hero h1 { font-size: clamp(3.5rem, 5.25vw, 4.85rem); margin: 12px 0 15px; line-height: .96; }
  .hero-copy .eyebrow { order: 1; }
  .hero-copy h1 { order: 2; }
  .hero-copy .actions { order: 3; margin: 0 0 17px; }
  .hero-copy .lead { order: 4; margin: 0 0 14px; line-height: 1.5; }
  .hero-copy .micro { order: 5; margin-top: 8px; }
  .product { padding-top: 42px; }
  .hero-mascot { width: 210px; top: -18px; right: -20px; }
}
@media (max-width: 600px) {
  .nav { min-height: 62px; height: auto; }
  .hero { min-height: 0 !important; padding: 28px 0 32px !important; gap: 0; }
  .hero-copy .eyebrow { font-size: .67rem; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3rem) !important; line-height: .98; margin: 12px 0 14px; }
  .hero .lead { font-size: .93rem; line-height: 1.48; margin-bottom: 18px; }
  .hero .actions { display: grid; grid-template-columns: 1fr; width: 100%; gap: 11px; }
  .hero .download-action { width: 100%; align-items: stretch; gap: 5px; }
  .hero .download-action .btn { width: 100%; min-height: 48px; }
  .hero .platform-icon { display: none; }
  .hero .micro, .hero .product { display: none; }
}
