/* Layout: landing page institucional — topo com navegação, hero com mosaico de
   ícones dos apps, grade de aplicativos (a seção principal), sobre e contato. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #121826;
  --muted: #5b6475;
  --line: #e2e5eb;
  --accent: #0b6e66;       /* verde-petróleo da marca */
  --accent-ink: #ffffff;
  --accent-soft: #e3f1ef;
  --ok: #138a4a;
  --warn: #a8640a;

  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --r: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px -12px rgba(16,24,40,.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1318; --surface: #171c23; --text: #eef1f5; --muted: #9aa3b2; --line: #262d37;
    --accent: #3cc2b3; --accent-ink: #062a27; --accent-soft: #15302d; --ok: #4ad38a; --warn: #f0b04a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1318; --surface: #171c23; --text: #eef1f5; --muted: #9aa3b2; --line: #262d37;
  --accent: #3cc2b3; --accent-ink: #062a27; --accent-soft: #15302d; --ok: #4ad38a; --warn: #f0b04a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font: 600 15px/1 var(--f-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

/* topo */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px;
  background: var(--accent);
}
.brand-mark i { background: var(--accent-ink); border-radius: 2px; opacity: .9; }
.brand-mark i:nth-child(4) { opacity: .45; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav .btn { color: var(--accent-ink); }

/* hero */
.hero { padding-block: 72px 64px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 600; }
.hero .lede { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.mosaic {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.mosaic a, .mosaic span {
  aspect-ratio: 1; max-width: 100%;
  display: grid; place-items: center;
  border-radius: 16px;
  text-decoration: none;
  font: 600 18px var(--f-display);
  color: #fff;
  background: var(--c, var(--line));
  transition: transform .2s;
  overflow: hidden;
}
.mosaic a:hover { transform: translateY(-3px); }
.mosaic a img { width: 100%; height: 100%; object-fit: cover; }
.mosaic span { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); font-size: 22px; font-weight: 400; }

/* seções */
.section { padding-block: 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 56ch; }
.apps-band { background: var(--surface); border-block: 1px solid var(--line); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 14px var(--f-body);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.app-group + .app-group { margin-top: 56px; }
.group-head { margin-bottom: 20px; }
.group-head h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }
.group-head p { color: var(--muted); margin-top: 4px; max-width: 56ch; }
.card {
  height: 100%;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--c); color: #fff;
  font: 600 17px var(--f-display);
  overflow: hidden; flex: none;
}
.icon img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 20px; font-weight: 600; }
.card .tagline { font-size: 14.5px; font-weight: 600; color: var(--accent); margin-top: 2px; }
.card .cat { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card .desc { color: var(--muted); font-size: 15px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.access { font-weight: 600; font-size: 15px; color: var(--accent); text-decoration: none; }
.access:hover { text-decoration: underline; text-underline-offset: 3px; }
.access.off { color: var(--muted); font-weight: 500; }
.access.sub { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.preview { margin: -24px -24px 0; border-radius: var(--r) var(--r) 0 0; overflow: hidden; border-bottom: 1px solid var(--line); aspect-ratio: 8 / 5; background: var(--bg); }
.preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.preview.mock { display: grid; place-content: center; gap: 6px; text-align: center; background: color-mix(in srgb, var(--c) 12%, var(--bg)); }
.preview.mock span { font: 600 34px var(--f-display); color: var(--c); }
.preview.mock em { font: 600 15px var(--f-body); font-style: normal; color: var(--muted); }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.feats li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.online { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge.beta { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.badge.em-breve { color: var(--muted); background: color-mix(in srgb, var(--muted) 12%, transparent); }

.card.soon {
  border-style: dashed; background: transparent;
  grid-template-rows: auto auto 1fr;
  align-content: start;
}
.card.soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.card.soon .icon { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); font-size: 24px; font-weight: 400; }

/* sobre */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.about h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; }
.about-text { display: grid; gap: 16px; color: var(--muted); font-size: 17px; max-width: 62ch; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.pillars div { border-top: 2px solid var(--accent); padding-top: 14px; }
.pillars b { display: block; color: var(--text); font-family: var(--f-display); font-weight: 600; margin-bottom: 4px; }
.pillars span { font-size: 15px; }

/* contato */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 40px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 22px;
}
.cta h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; }
.cta p { opacity: .85; margin-top: 6px; }
.cta-links { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn { background: var(--accent-ink); color: var(--accent); }

.footer { padding-block: 32px 40px; color: var(--muted); font-size: 14px; }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 880px) {
  .hero { padding-block: 48px 40px; }
  .hero .container, .about { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .nav a:not(.btn) { display: none; }
  .section { padding-block: 56px; }
}
@media (max-width: 560px) {
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 28px 22px; }
  .mosaic { padding: 14px; gap: 10px; }
}
