/* PlatăEgală coming-soon page.
   One memorable element: the headline set between the two bars of an equals sign.
   Everything else stays quiet. No external requests, no cookies. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("fonts/schibsted-grotesk-latin-wght-normal.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: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("fonts/schibsted-grotesk-latin-ext-wght-normal.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 {
  /* Stamp-ink blue on cool paper: the colours of a signed, stamped Romanian document. */
  --paper: #f7f8fa;
  --ink: #1a1d24;
  --muted: #5b616e;
  --stamp: #2a44b8;
  --stamp-tint: #e4e8f7;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 44rem;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --bar: clamp(0.625rem, 0.35rem + 0.8vw, 1rem);
  --gap: clamp(1.25rem, 0.75rem + 1.8vw, 2.25rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13151a;
    --ink: #eceef2;
    --muted: #a2a8b4;
    --stamp: #8fa3ff;
    --stamp-tint: #1e2442;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

/* Header: brand on the left, status on the right. */

.masthead,
.page,
.colophon {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: var(--gutter) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  fill: var(--stamp);
  flex: none;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.status {
  padding: 0.3em 0.85em;
  border-radius: 999px;
  background: var(--stamp-tint);
  color: var(--stamp);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

/* The equals sign. */

.page {
  align-self: center;
  padding-block: clamp(3rem, 2rem + 6vw, 6rem);
}

.equal {
  display: grid;
  gap: var(--gap);
}

.bar {
  display: block;
  height: var(--bar);
  border-radius: 999px;
  background: var(--stamp);
  transform-origin: left center;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.35rem + 3.9vw, 3.75rem);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Never split a hyphenated Romanian verb + clitic ("Pregătește-ți") across lines. */
.keep {
  white-space: nowrap;
}

.lead {
  max-width: 34em;
  margin: var(--gap) 0 0;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.basis {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.colophon {
  padding-block: 0 var(--gutter);
  color: var(--muted);
  font-size: 0.875rem;
}

.colophon p {
  margin: 0;
}

/* One movement on load: the shorter bar grows until both are equal. */

@media (prefers-reduced-motion: no-preference) {
  .bar-bottom {
    animation: equalize 1100ms cubic-bezier(0.22, 0.75, 0.2, 1) 350ms both;
  }

  @keyframes equalize {
    from {
      transform: scaleX(0.58);
    }
    to {
      transform: scaleX(1);
    }
  }
}

@media (max-width: 30rem) {
  body {
    font-size: 1.0625rem;
  }

  .brand-name {
    font-size: 1.125rem;
  }
}
