/* MANOVIS — stylesheet.
   Design: deep-navy anchor + one quiet steel-blue accent, whitespace-led, flat.
   Fonts self-hosted (no CDN) for GDPR. */

/* --- Fonts ------------------------------------------------------------- */
/* Inter variable (weights 100–900). Drop InterVariable.woff2 into
   src/assets/fonts/ ; until then the system-ui fallback renders. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
}

/* --- Tokens ------------------------------------------------------------ */
:root {
  --navy: #142438;      /* anchor: hero base, footer */
  --blue: #2C5F8A;      /* accent: links, buttons, keylines */
  --blue-dark: #234b6e; /* hover */
  --blue-wash: #eaf1f8; /* quiet section tint */
  --ink: #1e2a3a;       /* body text */
  --grey: #6f6f6e;      /* muted text (logo grey) */
  --hair: #e4e8ee;      /* hairlines */
  --mist: #f4f6f9;      /* surfaces */
  --white: #ffffff;

  --max-width: 72rem;
  --measure: 40rem;
  --space: 1.25rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-family: var(--font);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 0.5rem;
}
h2 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}
h3 {
  font-size: 1.15rem;
}

p {
  max-width: var(--measure);
}

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

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

/* --- Layout ------------------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space);
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 3.5rem var(--space);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: #fff;
}
.skip-link:focus {
  left: 0;
  z-index: 20;
}

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--hair);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-block: 0.85rem;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 38px;
  width: auto;
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* Primary nav — inline on desktop, hamburger dropdown on mobile */
.nav-menu {
  position: relative;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hair);
  border-radius: 0.5rem;
  background: var(--white);
  cursor: pointer;
  list-style: none;
}
.nav-toggle::-webkit-details-marker {
  display: none;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-toggle-icon {
  position: relative;
}
.nav-toggle-icon::before {
  position: absolute;
  left: 0;
  top: -6px;
}
.nav-toggle-icon::after {
  position: absolute;
  left: 0;
  top: 6px;
}
.nav-menu[open] .nav-toggle-icon {
  background: transparent;
}
.nav-menu[open] .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-menu[open] .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}
.nav-menu > .site-nav {
  display: none;
}
.nav-menu[open] > .site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  min-width: 200px;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 0.6rem;
  box-shadow: 0 10px 30px rgba(20, 36, 56, 0.14);
  z-index: 20;
}
.site-nav a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-menu[open] > .site-nav a {
  padding: 0.5rem 0.6rem;
  border-radius: 0.4rem;
}
.site-nav a:hover {
  color: var(--blue);
}
.nav-menu[open] > .site-nav a:hover {
  background: var(--blue-wash);
}

/* Language pill */
.lang-pill {
  position: relative;
}
.lang-pill > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}
.lang-pill > summary::-webkit-details-marker {
  display: none;
}
.lang-globe {
  flex: none;
}
.lang-chevron {
  flex: none;
  transition: transform 0.15s ease;
}
.lang-pill[open] .lang-chevron {
  transform: rotate(180deg);
}
.lang-pill[open] > .lang-menu {
  display: block;
}
.lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  margin: 0;
  padding: 0.35rem;
  min-width: 150px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 0.6rem;
  box-shadow: 0 10px 30px rgba(20, 36, 56, 0.14);
  z-index: 20;
}
.lang-menu a {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 0.4rem;
  color: var(--grey);
  text-decoration: none;
  font-size: 0.9rem;
}
.lang-menu a:hover {
  background: var(--blue-wash);
  color: var(--navy);
}
.lang-menu a[aria-current="true"] {
  color: var(--navy);
  font-weight: 600;
}

/* Mobile: language pill sits left of the hamburger */
@media (max-width: 720px) {
  .header-actions .lang-pill {
    order: -1;
  }
}

/* Desktop: inline nav, no hamburger */
@media (min-width: 721px) {
  .header-actions {
    gap: 1.5rem;
  }
  .nav-toggle {
    display: none;
  }
  /* Render the (closed) <details> content inline on desktop — modern browsers
     collapse it via ::details-content { content-visibility: hidden }. */
  .nav-menu::details-content {
    content-visibility: visible;
    contain-intrinsic-size: auto none;
  }
  .nav-menu > .site-nav,
  .nav-menu[open] > .site-nav {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    position: static;
    min-width: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
  .nav-menu[open] > .site-nav a {
    padding: 0;
  }
  .nav-menu[open] > .site-nav a:hover {
    background: none;
  }
}

/* --- Buttons ----------------------------------------------------------- */
.button {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 7px;
}
.button:hover {
  background: var(--blue-dark);
  color: #fff;
}

/* --- Hero -------------------------------------------------------------- */
.hero {
  margin-bottom: 3rem;
}
.hero h1 {
  max-width: 18ch;
}
.hero .lead {
  font-size: 1.25rem;
  max-width: 44ch;
  margin: 0 0 1.5rem;
}
.hero-body p:last-child {
  margin-bottom: 0;
}

/* Banner hero with the full-width line + bulb graphic (light panel) */
.hero--banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--blue-wash);
}
/* Mobile: title, then the bulb graphic (its line runs edge-to-edge between the
   title and the body text), then the description + CTA. */
.hero--banner .hero-title {
  margin: 0;
  padding: 2rem 1.5rem 0.25rem;
  text-wrap: balance;
}
.hero--banner .hero-media {
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.hero--banner .hero-media img {
  display: block;
  width: 124%;
  max-width: none;
  height: auto;
}
.hero--banner .hero-body {
  padding: 0.25rem 1.5rem 2rem;
}
@media (min-width: 52rem) {
  /* Desktop: full-width banner (line + bulb) as the panel; text overlaid left.
     The panel matches the banner's aspect so object-fit shows it uncropped. */
  .hero--banner {
    aspect-ratio: 1200 / 598;
  }
  .hero--banner .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    overflow: visible;
  }
  .hero--banner .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero--banner .hero-title,
  .hero--banner .hero-body {
    position: relative;
    z-index: 1;
    max-width: 52%;
    padding-inline: clamp(2.5rem, 4.5vw, 4rem);
  }
  .hero--banner .hero-title {
    max-width: 18ch;
    padding-top: clamp(2.5rem, 4.5vw, 4rem);
    padding-bottom: 0;
  }
  .hero--banner .hero-body {
    padding-top: 1rem;
  }
}

/* --- Sections / entries ------------------------------------------------ */
.site-main section + section {
  margin-top: 3rem;
}
.property-list {
  padding-inline-start: 1.1rem;
}
.property-list li {
  margin-block: 0.4rem;
}
/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, 260px);
  justify-content: center;
  margin-top: 1.25rem;
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: #c3d2e2;
  box-shadow: 0 6px 20px rgba(20, 36, 56, 0.08);
}
.card-media {
  display: block;
}
.card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top;
}
/* easo: animated bulb centered on the brand navy */
.card-media--easo {
  background: #142438;
}
.card-media--easo img {
  object-fit: contain;
  object-position: center;
  padding: 1.1rem;
}
.card-body {
  padding: 1rem 1.1rem 1.2rem;
}
.card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.card-body h3 a {
  color: var(--navy);
  text-decoration: none;
}
.card-body h3 a:hover {
  color: var(--blue);
}
.card-body p {
  margin: 0;
  color: var(--grey);
  font-size: 0.95rem;
}
.section-more {
  margin-top: 1.25rem;
}

/* Feature sections (product / investment detail) */
.features .feature {
  display: grid;
  gap: 1.25rem 2.5rem;
  grid-template-columns: 1fr;
  align-items: center;
  margin-block: 3.25rem;
}
.feature-media > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--hair);
  border-radius: 12px;
}
.feature-media--easo {
  background: #142438;
  border: 1px solid var(--hair);
  border-radius: 12px;
}
/* whaaat: app screenshot in a tilted phone frame + App Store badge */
.feature-media--app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
}
.phone {
  width: 200px;
  aspect-ratio: 680 / 1477;
  background: #10141b;
  border-radius: 30px;
  padding: 7px;
  box-shadow: 0 24px 44px rgba(20, 36, 56, 0.28);
  transform: rotate(-5deg);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
.app-badge {
  display: inline-block;
}
.app-badge img {
  display: block;
  height: 42px;
  width: auto;
}
.feature-media--easo img {
  object-fit: contain;
  object-position: center;
  border: 0;
  padding: 2rem;
}
.feature-text h2 {
  margin-top: 0;
}
.feature-logo {
  margin: 0 0 0.9rem;
  line-height: 0;
}
.feature-logo img {
  display: block;
  height: 2.4rem;
  width: auto;
}
/* optical balancing: thin/tall wordmarks need more height to read the same size */
.feature-logo--creggles img {
  height: 3.9rem;
}
.feature-logo--craggles img {
  height: 3.6rem;
}
.feature-logo--accroma img {
  height: 3rem;
}
.feature-logo--athemi img {
  height: 3rem;
}
.feature-points {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}
.feature-points li {
  position: relative;
  padding-left: 1.4rem;
  margin: 0.4rem 0;
}
.feature-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
}
.badge {
  display: inline-block;
  background: var(--blue-wash);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
@media (min-width: 48rem) {
  .features .feature {
    grid-template-columns: 1fr 1fr;
  }
  .features .feature:nth-child(even) .feature-media {
    order: 2;
  }
}

.entry {
  margin-block: 1.75rem;
  max-width: var(--measure);
}
.entry h2 {
  margin-bottom: 0.25rem;
}

blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--blue);
  color: var(--grey);
  font-style: italic;
}
blockquote cite {
  display: block;
  margin-top: 0.25rem;
  font-style: normal;
  font-size: 0.9rem;
}

.legal {
  max-width: 46rem;
}
.legal h2 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

/* --- Contact ----------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #c7ccd4;
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.contact-form .consent label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 400;
}
.contact-form .consent input {
  flex: none;
  margin-top: 0.25rem;
}
.contact-form button {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.contact-form button:hover {
  background: var(--blue-dark);
}
/* Honeypot — hidden from users and AT, still submitted */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-message {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.form-success {
  background: #e6f4ea;
  border: 1px solid #99cca9;
}
.form-error {
  background: #fceaea;
  border: 1px solid #e0a3a3;
}

/* --- Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: #cdd6e2;
  font-size: 0.9rem;
}
.footer-inner {
  padding-block: 3rem 2rem;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand {
  max-width: 20rem;
}
.footer-logo {
  height: 34px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}
.footer-tagline {
  margin: 0;
  color: #9fb0c4;
  line-height: 1.5;
}
.footer-heading {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.site-footer a {
  color: #cdd6e2;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bar-inner {
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  margin: 0;
  color: #9fb0c4;
}
.footer-sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}
.footer-social {
  display: inline-flex;
  color: #9fb0c4;
}
.footer-social:hover {
  color: #fff;
}
@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
    padding-block: 2.5rem 1.5rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bar-inner {
    justify-content: flex-start;
  }
}
