:root {
  --prysmio-text: #17151c;
  --prysmio-muted: #77727d;
  --prysmio-soft: #8d8992;
  --prysmio-border: #ece9ef;
  --prysmio-link: #8f639f;
  --prysmio-card-radius: 24px;
  --prysmio-shell: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--prysmio-text);
  background: #ffffff;
}

/* =========================================================
   ONE SHARED PRYSMIO BASE
   Home and every Formula Journal subpage use these same pieces.
   ========================================================= */

.prysmio-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 24px;

  background:
    radial-gradient(
      circle at 18% 25%,
      rgba(255, 185, 195, 0.9),
      transparent 42%
    ),
    radial-gradient(
      circle at 82% 30%,
      rgba(186, 166, 238, 0.9),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #ffd0d4 0%,
      #efb6d4 48%,
      #c8b8ef 100%
    );
}

.language-switcher {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 10px;

  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-switcher button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.language-switcher button:hover,
.language-switcher button.active {
  color: #ffffff;
  opacity: 1;
}

.language-divider {
  opacity: 0.48;
}

.hero-content {
  max-width: 760px;
}

.prysmio-symbol {
  width: 112px;
  height: 112px;
  margin: 0 auto 28px;
}

.prysmio-symbol svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand {
  margin: 0;
  color: #ffffff;
  font-size: clamp(48px, 9vw, 82px);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-shadow: 0 4px 18px rgba(70, 38, 82, 0.16);
}

.tagline {
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ONE content width for Home and ALL subpages. */
.page-shell,
.products,
.legal-content {
  width: calc(100% - 40px);
  max-width: var(--prysmio-shell);
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   HOME
   ========================================================= */

.products {
  padding: 80px 0 90px;
}

.section-label {
  margin-bottom: 26px;
  color: var(--prysmio-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 28px;
  border: 1px solid var(--prysmio-border);
  border-radius: var(--prysmio-card-radius);
  background: #ffffff;
  box-shadow: 0 14px 45px rgba(44, 32, 53, 0.07);
}

.app-icon {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.app-info {
  flex: 1;
  min-width: 0;
}

.app-info h2 {
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 700;
}

.app-info p {
  margin: 0;
  max-width: 560px;
  color: var(--prysmio-muted);
  line-height: 1.6;
}

.app-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-links a {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid #e3dfe7;
  border-radius: 11px;
  color: #403b45;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.app-links a:hover {
  border-color: #caa6d8;
  background: #faf6fc;
}

/* =========================================================
   FORMULA JOURNAL SUBPAGES
   Uses the SAME hero, language switcher, app icon and page shell.
   No separate legal stylesheet.
   ========================================================= */

.legal-hero {
  min-height: 360px;
  justify-content: flex-start;
  text-align: left;
}

.legal-hero .page-shell {
  width: 100%;
  position: relative;
}

.prysmio-home-link {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 2;

  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.12em;
}

.prysmio-home-link:hover {
  color: #ffffff;
}

.legal-title-row {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 62px;
}

.legal-title-row .app-icon {
  width: 82px;
  height: 82px;
  flex-basis: 82px;
  border-radius: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.legal-title-row h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.12;
  font-weight: 700;
  text-shadow: 0 4px 18px rgba(70, 38, 82, 0.12);
}

.legal-content {
  padding: 66px 0 90px;
}

.lang {
  display: none;
}

.lang.active {
  display: block;
}

.legal-content > .lang > p:first-child {
  margin-top: 0;
}

.legal-content h2 {
  margin: 42px 0 12px;
  color: #27232b;
  font-size: 23px;
  line-height: 1.3;
}

.legal-content p,
.legal-content li {
  color: #6a6570;
  font-size: 16px;
  line-height: 1.72;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.legal-content li {
  margin: 7px 0;
}

.legal-content a {
  color: var(--prysmio-link);
  font-weight: 600;
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.updated {
  color: #9a949f !important;
  font-size: 14px !important;
}

.notice {
  margin: 28px 0 12px;
  padding: 20px 22px;
  border: 1px solid #eadfeb;
  border-left: 4px solid #c79bd5;
  border-radius: 14px;
  background: #faf6fc;
  color: #625b67;
  font-size: 15px;
  line-height: 1.7;
}

/* Shared footer */
footer {
  padding: 28px 20px 38px;
  text-align: center;
  color: #aaa5ae;
  font-size: 13px;
}

/* 404 uses exactly the same Home hero language. */
.not-found {
  padding: 80px 0 90px;
  text-align: center;
}

.not-found h1 {
  margin: 0 0 12px;
  font-size: 36px;
}

.not-found p {
  margin: 0 0 24px;
  color: var(--prysmio-muted);
  line-height: 1.6;
}

.not-found a {
  color: var(--prysmio-link);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 620px) {
  .prysmio-hero {
    min-height: 55vh;
    padding-left: 20px;
    padding-right: 20px;
  }

  .language-switcher {
    top: 20px;
    right: 20px;
  }

  .prysmio-symbol {
    width: 90px;
    height: 90px;
  }

  .brand {
    letter-spacing: 0.12em;
  }

  .app-card {
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
  }

  .app-icon {
    width: 70px;
    height: 70px;
    flex-basis: 70px;
    border-radius: 17px;
  }

  .app-info h2 {
    font-size: 21px;
  }

  .legal-hero {
    min-height: 320px;
  }

  .prysmio-home-link {
    font-size: 19px;
  }

  .legal-title-row {
    margin-top: 54px;
    align-items: flex-start;
    gap: 18px;
  }

  .legal-title-row .app-icon {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 16px;
  }

  .legal-title-row h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .legal-content {
    padding-top: 48px;
    padding-bottom: 70px;
  }

  .legal-content h2 {
    font-size: 21px;
  }
}
