/* papusoi.com — one stylesheet for the three pages.
 *
 * The tokens are the Aurora products' own (aurora-account/web/src/styles/aurora.css): the same page,
 * surface, text and accent colours, light and dark, so this site reads as one of them. Dark is what
 * a visitor with no preference gets; light follows prefers-color-scheme.
 */

/* Manrope, self-hosted, in the three ranges the pages use: Latin (English), Cyrillic (Russian) and Latin
   Extended (the ș, ț and ă of Romanian). The browser fetches a file only when a page has a character from its
   range. The Latin and Cyrillic files are variable (200–800); Latin Extended comes as the four weights the
   stylesheet uses. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-var-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: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-var-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-400-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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-600-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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-700-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;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-800-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 {
  color-scheme: dark light;
  --page: #0e0d13;
  --surface: #17161f;
  --surface2: #221f2d;
  --text: #f2f1f6;
  --text2: #aba8ba;
  --text3: #9c99ad;
  --border: #2b2937;
  --border2: #3b3949;
  --accent: #5b3fd9;
  --accent-text: #a996ff;
  --ok: #74d6a2;
  --ok-soft: #14301f;
  --warn: #ffcb6b;
  --warn-soft: #352810;
  --ring: rgba(140, 118, 255, 0.38);
  --glow: 0.75;
}
@media (prefers-color-scheme: light) {
  :root {
    --page: #f6f5f9;
    --surface: #ffffff;
    --surface2: #efedf4;
    --text: #17161f;
    --text2: #5f5c6e;
    --text3: #6e6b7d;
    --border: #e4e2ea;
    --border2: #cfccd8;
    --accent-text: #4f34cc;
    --ok: #1e7148;
    --ok-soft: #e3f3e9;
    --warn: #7a4e00;
    --warn-soft: #fff3d6;
    --ring: rgba(91, 63, 217, 0.22);
    --glow: 0.42;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent-text);
  text-underline-offset: 3px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top bar ------------------------------------------------------------------------------- */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px 0;
}
/* The family's lockup, the mark and AURORA (aurora-brand). */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  height: 20px;
  width: auto;
}
/* The white mark on dark, the black one on light. Specific enough to win over any rule that gives an
   image a display of its own (.brand img, .card .lockup). */
img.mark-dark {
  display: block;
}
img.mark-light {
  display: none;
}
@media (prefers-color-scheme: light) {
  img.mark-dark {
    display: none;
  }
  img.mark-light {
    display: block;
  }
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 15px;
}
.top nav a {
  color: var(--text2);
  text-decoration: none;
}
.top nav a:hover,
.top nav a[aria-current="page"] {
  color: var(--text);
}

/* --- The sky: the home page's backdrop ------------------------------------------------------ */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.sky span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--glow);
  animation: drift 26s ease-in-out infinite alternate;
}
.sky span:nth-child(1) {
  width: 62vmax;
  height: 30vmax;
  left: -12vmax;
  top: -14vmax;
  background: #5b3fd9;
}
.sky span:nth-child(2) {
  width: 48vmax;
  height: 24vmax;
  right: -14vmax;
  top: -6vmax;
  background: #1fb5a2;
  animation-duration: 33s;
  animation-delay: -9s;
}
.sky span:nth-child(3) {
  width: 40vmax;
  height: 20vmax;
  left: 22vmax;
  top: 4vmax;
  background: #c04fd6;
  opacity: calc(var(--glow) * 0.6);
  animation-duration: 41s;
  animation-delay: -17s;
}
/* The horizon: the sky fades into the page, so the cards sit on solid ground. */
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--page) 62%);
}
@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(-4deg) scale(1);
  }
  50% {
    transform: translate3d(6vmax, 2vmax, 0) rotate(3deg) scale(1.08);
  }
  100% {
    transform: translate3d(-4vmax, 4vmax, 0) rotate(-2deg) scale(0.96);
  }
}

/* --- Home ------------------------------------------------------------------------------------ */

.hero {
  padding: 72px 0 40px;
  max-width: 720px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 4px var(--warn-soft);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero .lead {
  margin: 0;
  max-width: 600px;
  color: var(--text2);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
}

.products {
  padding: 40px 0 24px;
}
.products h2 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
}
.products > p {
  margin: 0 0 20px;
  color: var(--text2);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 250ms cubic-bezier(0.3, 1.4, 0.5, 1),
    border-color 150ms,
    box-shadow 250ms;
}
a.card:hover {
  border-color: var(--border2);
  box-shadow: 0 14px 36px rgba(10, 9, 14, 0.28);
  transform: translateY(-2px);
}
a.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.card .lockup {
  height: 16px;
  width: auto;
  align-self: flex-start;
}
.card p {
  margin: 0;
  color: var(--text2);
  font-size: 16px;
  line-height: 1.55;
  flex: 1;
}
.card .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.pill.live {
  color: var(--ok);
  background: var(--ok-soft);
}
.pill.soon {
  color: var(--warn);
  background: var(--warn-soft);
}

/* --- Documents ------------------------------------------------------------------------------- */

.doc {
  max-width: 760px;
  padding: 40px 0 24px;
}
/* Long words of Russian and Romanian titles ("конфиденциальности") may break rather than widen the page. */
.doc h1 {
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.doc .meta {
  margin: 0 0 28px;
  color: var(--text3);
  font-size: 15px;
}
.doc .langs {
  margin: -16px 0 28px;
  color: var(--text3);
  font-size: 15px;
}
.doc .langs a {
  color: var(--text2);
}
.doc .note {
  margin: 0 0 28px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface2);
  color: var(--text2);
  font-size: 15px;
}
.doc .summary {
  margin: 0 0 32px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.doc .summary h2 {
  margin: 0 0 8px;
  font-size: 17px;
}
.doc .summary ul {
  margin: 0;
  padding-left: 20px;
}
.doc .summary li + li {
  margin-top: 4px;
}
.toc {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
  font-size: 15px;
}
.toc li {
  break-inside: avoid;
  padding: 3px 0;
}
.toc a {
  color: var(--text2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--text);
}
.doc h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
  scroll-margin-top: 24px;
}
.doc h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.doc p,
.doc li {
  color: var(--text);
}
.doc p {
  margin: 0 0 14px;
}
.doc ul,
.doc ol {
  margin: 0 0 14px;
  padding-left: 22px;
}
.doc li + li {
  margin-top: 6px;
}
.doc .muted {
  color: var(--text2);
}
.table {
  width: 100%;
  margin: 8px 0 18px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.table th {
  color: var(--text3);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.scroll {
  overflow-x: auto;
}

/* --- Footer and the 404 ---------------------------------------------------------------------- */

.footer {
  margin-top: 56px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--text3);
  font-size: 14px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer a {
  color: var(--text2);
  text-decoration: none;
}
.footer a:hover {
  color: var(--text);
}

.lost {
  padding: 120px 0 40px;
  max-width: 560px;
}
.lost h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.lost p {
  margin: 0 0 20px;
  color: var(--text2);
}

/* --- Phones ---------------------------------------------------------------------------------- */

@media (max-width: 820px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 40px 0 24px;
  }
  .toc {
    columns: 1;
  }
}
@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
  .doc h1 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky span,
  .eyebrow .dot {
    animation: none;
  }
  .card {
    transition: none;
  }
}

@media print {
  .sky,
  .top nav,
  .footer nav,
  .skip {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .doc p,
  .doc li {
    color: #000;
  }
}
