/* inovaea brand, ported from the inovaea-web repository.
   The header is white in light mode and near-black in dark mode; the brand red
   is the accent and the link colour, exactly as on the previous site. */

/* --- Typeface -------------------------------------------------------------
   Inter is served from this site, never from a font service. A visitor's
   address is nobody else's business, and a page that fetches from a third
   party would need consent before it did so.

   Inter is under the SIL Open Font License 1.1; assets/fonts/LICENSE.txt is
   the licence it ships under. The two files are the latin and latin extended
   subsets — a browser downloads the second one only if a page actually uses a
   character from it. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --md-text-font: "Inter";
}

/* --- Brand red ------------------------------------------------------------
   #e2001a is the brand colour. On white it is used for accents and hover
   states; links use the darker #c00015 so body text passes contrast, and the
   lighter #ff6f7f is used on dark backgrounds for the same reason. */

[data-md-color-accent="custom"] {
  --md-accent-fg-color: #e2001a;
  --md-accent-fg-color--transparent: rgba(226, 0, 26, 0.1);
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: rgba(255, 255, 255, 0.7);
}

[data-md-color-scheme="default"] {
  --md-typeset-a-color: #c00015;
}

/* Dark mode backgrounds are the ones from the brand stylesheet: #0c0d0f for
   the page, #15171b for raised surfaces. */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #15171b;
  --md-default-bg-color: #0c0d0f;
  --md-code-bg-color: #15171b;
  --md-typeset-a-color: #ff6f7f;
}

/* --- Logo -----------------------------------------------------------------
   The logo is a wordmark, so the header carries no site name beside it. The
   theme fixes the image to a square; a wordmark needs its own width. */

.md-header__button.md-logo img {
  height: 1.5rem;
  width: auto;
}

/* The grey wordmark cannot be read on a dark header — swap in the white one. */
[data-md-color-scheme="slate"] .md-header__button.md-logo img {
  content: url("../assets/inovaea-logo-white.svg");
}

/* The wordmark already spells the site name, so the theme's text beside it
   would only repeat it. The page title that replaces it on scroll stays.
   Note the descendant selector: the topics sit inside .md-header__ellipsis,
   not directly under the title. */
.md-header__title .md-header__topic:first-child {
  display: none;
}

/* No repository link anywhere in the chrome: the header on a wide screen,
   and the navigation drawer on a narrow one, where the theme renders it a
   second time. The pencil on each page still works — it is a separate
   control, and it is what makes editing from a phone possible. */
.md-header__source,
.md-nav__source {
  display: none;
}

/* --- Landing page ---------------------------------------------------------
   Used by index.md only. No negative margins and no viewport units: the page
   must never scroll sideways, on any width. */

.md-typeset .hero {
  margin: 0 0 2.5rem;
  padding: 4rem 2rem 3.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #e2001a 0%, #66000a 100%);
  color: #ffffff;
  text-align: center;
}

.md-typeset .hero h1 {
  margin: 0.3rem 0 0.9rem;
  color: #ffffff;
  font-size: clamp(1.6rem, 5.5vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.md-typeset .hero__eyebrow {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}

.md-typeset .hero__lede {
  max-width: 34rem;
  margin: 0 auto 1.9rem;
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.95;
}

.md-typeset .hero__note {
  margin: 1.8rem 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.md-typeset .hero .md-button {
  margin: 0.25rem 0.3rem;
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.md-typeset .hero .md-button:focus,
.md-typeset .hero .md-button:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
  color: #ffffff;
}

.md-typeset .hero .md-button--primary {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #c00015;
}

.md-typeset .hero .md-button--primary:focus,
.md-typeset .hero .md-button--primary:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #a00012;
}

/* The four numbers under the hero. A plain Markdown list, laid out as a row. */

.md-typeset .stats ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1.4rem 1rem;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}

.md-typeset .stats li {
  margin: 0;
  text-align: center;
}

.md-typeset .stats li > p {
  margin: 0;
}

.md-typeset .stats li > p:first-child strong {
  display: block;
  color: var(--md-accent-fg-color);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.md-typeset .stats li > p + p {
  margin-top: 0.35rem;
  font-size: 0.66rem;
  line-height: 1.4;
  opacity: 0.8;
}

/* --- Pricing ---------------------------------------------------------------
   Three levels side by side on a wide screen, stacked on a narrow one. The
   theme fits as many cards per row as will go; here the number is meant to be
   three, so that the levels read as a ladder. */

@media screen and (min-width: 45em) {
  .md-typeset .grid.pricing {
    grid-template-columns: repeat(3, 1fr);
  }
}

.md-typeset .pricing__level {
  margin: 0;
  color: var(--md-accent-fg-color);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.md-typeset .pricing__amount {
  margin: 0.15rem 0 0;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
}

.md-typeset .pricing__note {
  margin: 0.1rem 0 0;
  font-size: 0.62rem;
  opacity: 0.75;
}

/* Cards on the landing page lift slightly on hover, as they did on the
   previous site. */

.md-typeset .grid.cards > ul > li {
  transition: border-color 125ms, box-shadow 125ms, transform 125ms;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

@media screen and (max-width: 44.9375em) {
  .md-typeset .hero {
    padding: 3rem 1.2rem 2.6rem;
  }

  /* Tables use the whole width of the screen. The theme sizes a table to its
     content and leaves it padded inside the text column, which on a phone
     wastes the little width there is. Anything that still will not fit keeps
     scrolling sideways inside its own wrapper — the page itself never does. */
  .md-typeset__table {
    display: block;
    width: 100%;
    padding: 0;
  }

  .md-typeset__table > table {
    display: table;
    width: 100%;
  }

  .md-typeset__table > table th,
  .md-typeset__table > table td {
    padding: 0.6em 0.8rem;
  }
}

/* --- Separating the header from the page ---------------------------------
   A white header on a white page needs a line under it, the same shadow the
   previous site used. */

.md-header {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.md-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

[data-md-color-scheme="slate"] .md-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

[data-md-color-scheme="slate"] .md-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
