/* Almian Software — minimal holding page: the colour logo on off-white, with a light / dark button. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Base colours = the light version. The page opens dark for everyone (data-theme="dark" on
     <html>, which also works without scripts); light only when the visitor picks it with the
     button. The device's own dark-mode setting is deliberately ignored. */
  color-scheme: light;

  --orange: #F88E20;
  --blue: #017DC3;
  --navy: #0B2A4A;

  --bg: #F6F3EC;
  --text: var(--navy);
  --muted: #4A5F78;
  --line: #D9D3C6;
  --logo-chevron: var(--blue);
  --logo-name: var(--navy);
  --logo-second: var(--blue);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #071C33;
  --text: #F6F3EC;
  --muted: #B4C2D3;
  --line: #2A4B70;
  --logo-chevron: var(--blue);   /* the chevron and "Software" stay Ulisse blue in dark mode */
  --logo-name: #FFFFFF;
  --logo-second: var(--blue);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 44px);
  padding: 48px 24px;
  text-align: center;
}

h1 { margin: 0; line-height: 0; }

.logo { width: clamp(240px, 44vw, 400px); height: auto; display: block; }
.logo-base { fill: var(--orange); }
.logo-chevron { fill: var(--logo-chevron); }
.logo-name { fill: var(--logo-name); }
.logo-second { fill: var(--logo-second); }

.tagline {
  margin: 0;
  max-width: 34em;
  text-wrap: balance;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

footer {
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}
footer address {
  font-style: normal;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.9em;
}
footer address span + span::before { content: "·"; margin-right: 0.9em; }
footer .company { font-weight: 700; color: var(--text); }
footer a { color: inherit; }
footer .copyright { margin: 4px 0 0; }

/* ------------------------------------------------------- light / dark button */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

.logo-chevron,
.logo-name,
.logo-second { transition: fill 0.25s ease; }

@media (prefers-reduced-motion: reduce) {
  body, .logo-chevron, .logo-name, .logo-second { transition: none; }
}

@media (max-width: 640px) {
  footer address { flex-direction: column; }
  footer address span + span::before { content: none; }
}

/* ------------------------------------------- text pages (support, privacy policy) */
.page main { align-items: stretch; justify-content: flex-start; text-align: left; gap: 0; padding-top: 72px; }
.page .home { display: block; width: clamp(150px, 30vw, 200px); margin: 0 auto 40px; }
.page .home .logo { width: 100%; }
.doc { width: 100%; max-width: 44rem; margin: 0 auto; }
.doc h1 { margin: 0 0 6px; line-height: 1.2; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 800; }
.doc h2 { margin: 34px 0 8px; font-size: 1.15rem; font-weight: 700; }
.doc p, .doc li { line-height: 1.65; }
.doc ul { padding-left: 1.2em; }
.doc .updated { margin: 0 0 22px; color: var(--muted); font-size: 0.95rem; }
.doc a, footer .links a { color: inherit; text-decoration-color: var(--blue); text-underline-offset: 3px; }
footer .links { margin: 10px 0 0; }
