/* MoraBem — site institucional (morabem.app).
   Static page: no framework, fonts served from this origin (no third-party requests). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-latin-wght.woff2") format("woff2-variations");
}

:root {
  /* Brand palette, taken from the logo (same values as src/web/index.css in the app).
     Copper is an accent for strokes and fills: as text on a light background it is only
     2.4:1, so copper text on light uses --copper-700 and the focus ring --copper-600. */
  --navy-50: #eef1f7;
  --navy-200: #c6cddc;
  --navy-600: #2a3757;
  --navy-700: #1b2a4e;
  --navy-900: #0f1932;
  --copper-50: #fbf5ec;
  --copper-100: #f6ebdd;
  --copper-200: #edd7bc;
  --copper-300: #e0bc93;
  --copper-400: #d39b62;
  --copper-600: #b4783f;
  --copper-700: #8a5a2b;
  --copper-800: #74491f;
  --cream: #eae2d7;
  /* Warm neutrals: light greys lean to cream, dark ones are the navy of the logo. */
  --slate-50: #faf7f2;
  --slate-100: #f2ede5;
  --slate-200: #e4ddd2;
  --slate-300: #cfc6b8;
  --slate-400: #9497a3;
  --slate-500: #636b80;
  --slate-600: #4a5468;
  --slate-700: #343e56;
  --slate-800: #222c47;
  --slate-900: #0f1932;
  --slate-950: #0a1124;
  --amber-100: #fef3c7;
  --amber-800: #92400e;
  --green-100: #dcfce7;
  --green-800: #166534;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  /* Large type on purpose: much of the audience reads on a phone and is not at home with apps. */
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate-900);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: var(--copper-700);
}

a:hover {
  color: var(--navy-900);
}

:is(a, button, summary):focus-visible {
  outline: 3px solid var(--copper-600);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--slate-900);
  color: #ffffff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

:is(.site-header, .section-dark, .cta, .site-footer) :is(a, button, summary):focus-visible {
  outline-color: var(--copper-400);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-lg {
  min-height: 60px;
  padding: 0 30px;
  border-radius: 14px;
  font-size: 19px;
}

.btn-primary {
  background: var(--navy-900);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--navy-700);
  color: #ffffff;
}

/* The call to action on navy (header): a copper fill with navy text. */
.btn-accent {
  background: var(--copper-400);
  color: var(--navy-900);
}

.btn-accent:hover {
  background: var(--copper-300);
  color: var(--navy-900);
}

.btn-outline {
  background: #ffffff;
  color: var(--slate-900);
  border-color: var(--navy-900);
}

.btn-outline:hover {
  background: var(--navy-50);
  border-color: var(--navy-900);
  color: var(--slate-900);
}

.btn-light {
  background: var(--slate-50);
  color: var(--slate-900);
}

.btn-light:hover {
  background: #ffffff;
  color: var(--slate-900);
}

.btn-ghost-light {
  border-color: var(--cream);
  color: var(--cream);
}

.btn-ghost-light:hover {
  background: rgb(234 226 215 / 0.1);
  color: #ffffff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid, so it matches theme-color and the navy square of the logo exactly. */
  background: var(--navy-900);
  border-bottom: 1px solid var(--navy-700);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand,
.brand:hover {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.site-nav ul {
  display: flex;
  gap: 4px 28px;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 10px 0;
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
}

.site-nav a:hover {
  color: var(--copper-400);
}

.header-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
}

/* On a narrow phone only one button fits: keep "Entrar" for people who already have an
   account; signing up is the first big button of the page, right below. */
@media (max-width: 420px) {
  .header-actions .btn-accent:not(:only-child) {
    display: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 96px 0;
}

.section-white {
  background: #ffffff;
}

.section-muted {
  background: var(--slate-100);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-dark {
  background: var(--slate-900);
  color: var(--slate-50);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 46rem;
}

.eyebrow {
  color: var(--copper-700);
  font-weight: 600;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--copper-400);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead {
  font-size: 20px;
  color: var(--slate-600);
}

.check-icon {
  flex: none;
  color: var(--copper-600);
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 88px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pill {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--copper-100);
  color: var(--copper-800);
  font-size: 16px;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-lead {
  max-width: 36rem;
  font-size: 21px;
  line-height: 1.6;
  color: var(--slate-700);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 0;
  list-style: none;
  font-size: 17px;
  color: var(--slate-700);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Product illustration: a drawing of the resident's home screen, not a live component */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 8px 0 44px;
}

.phone {
  width: min(100%, 320px);
  padding: 14px;
  border-radius: 44px;
  background: var(--navy-900);
  box-shadow: 0 30px 60px -20px rgb(15 25 50 / 0.45);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 18px 22px;
  border-radius: 32px;
  background: var(--slate-50);
}

.phone-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.phone-sub {
  font-size: 13px;
  color: var(--slate-600);
}

.phone-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.phone-bell {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
}

.phone-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--copper-700);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.phone-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.phone-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.phone-tile svg {
  color: var(--copper-600);
}

.phone-tile-new {
  padding: 13px;
  background: var(--copper-50);
  border: 2px solid var(--copper-400);
  font-weight: 700;
}

.phone-tile-new svg {
  color: var(--copper-700);
}

.phone-next {
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
}

.phone-next-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-600);
}

.phone-next-value {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}

.phone-toast {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 300px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  box-shadow: 0 18px 40px -16px rgb(15 25 50 / 0.35);
  line-height: 1.45;
}

.phone-toast-icon {
  display: inline-flex;
  flex: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--copper-400);
}

.phone-toast strong {
  display: block;
  font-size: 16px;
}

.phone-toast small {
  display: block;
  font-size: 14px;
  color: var(--slate-600);
}

@media (max-width: 640px) {
  .hero-inner {
    padding-top: 48px;
    padding-bottom: 64px;
    gap: 40px;
  }

  .phone-toast {
    left: 8px;
    right: 8px;
    max-width: none;
  }
}

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: 20px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.service-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--navy-900);
  color: var(--copper-400);
}

.service h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
}

.service p {
  color: var(--slate-700);
}

.service .service-who {
  margin-top: auto;
  font-size: 15px;
  color: var(--slate-600);
}

.service-who strong {
  color: var(--slate-900);
}

/* ---------- Audiences ---------- */

.audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-top: 48px;
}

.audience {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
}

.audience-tag {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper-700);
}

.audience h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.25;
}

.audience .checklist {
  color: var(--slate-700);
}

.audience-dark {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--slate-50);
}

.audience-dark .audience-tag {
  color: var(--copper-400);
}

.audience-dark .checklist {
  color: var(--cream);
}

.audience-dark .check-icon {
  color: var(--copper-400);
}

.checklist {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
}

.checklist .check-icon {
  margin-top: 3px;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: 24px;
  border: 2px solid var(--slate-200);
}

.step-num {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--copper-400);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
}

.step p {
  color: var(--slate-700);
}

/* ---------- Integration (a short band, for hosts with many units) ---------- */

.integration {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.integration-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.integration-copy {
  display: flex;
  flex: 1 1 520px;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.integration-copy h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.25;
}

.integration-copy p {
  color: var(--slate-700);
}

.integration-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
}

/* ---------- Security ---------- */

.security {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px;
  align-items: start;
}

.security .h2 {
  color: var(--slate-50);
}

.section-dark .lead {
  color: var(--cream);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.security-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 20px;
  background: var(--navy-700);
}

.security-item h3 {
  font-size: 20px;
  color: var(--slate-50);
}

.security-item p {
  font-size: 17px;
  color: var(--cream);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
}

.faq .h2 {
  margin-bottom: 32px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  padding: 0 24px;
  border-radius: 16px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 0;
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  flex: none;
  color: var(--copper-700);
  font-size: 30px;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] .faq-plus {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: 24px;
  color: var(--slate-700);
}

/* ---------- Final CTA ---------- */

/* Follows the FAQ on the same white, so it only needs the space below. */
.section-cta {
  padding-top: 0;
  background: #ffffff;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(36px, 6vw, 64px);
  border-radius: 24px;
  background: var(--navy-900);
  color: #ffffff;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 38rem;
}

.cta-copy p {
  color: var(--cream);
  font-size: 20px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--slate-900);
  color: var(--slate-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand,
.footer-brand .brand:hover {
  color: #ffffff;
}

.footer-brand p {
  font-size: 16px;
}

.footer-col h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.footer-col a {
  color: var(--slate-300);
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--slate-800);
  color: var(--slate-300);
  font-size: 14px;
}

/* ---------- 404 ---------- */

.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 120px;
  padding-bottom: 120px;
}
