/* feelmeet.app: the landing and the documents (Figma "landing" / "template-docs"). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-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: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-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;
}

:root {
  color-scheme: dark;
  --bg: #06080d;
  --text: #ffffff;
  --text-muted: #717fa3;
  --text-faint: rgba(113, 127, 163, 0.4);
  --accent-soft: #677890;
  --body: #d3d9e6;
  --line: rgba(255, 255, 255, 0.06);
  --container: 1104px;
  --gutter: 24px;
}

*,
*::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: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.nowrap {
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid #3f8cff;
  outline-offset: 3px;
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 76px;
}

.logo {
  display: block;
  width: 109px;
  height: 20px;
}

.logo img {
  width: 109px;
  height: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 40px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    filter 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  height: 38px;
  padding: 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.04);
  background-color: rgba(255, 255, 255, 0.067);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 14px;
  line-height: 22px;
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.11);
}

.btn-ghost img {
  width: 16px;
  height: 16px;
}

.btn-main {
  position: relative;
  height: 48px;
  padding: 0 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 100%),
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 221 48' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%25' width='100%25' fill='url(%23grad)'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(8.1281 9.05 -16.19 12.88 89.25 -12.5)'><stop stop-color='rgb(219,25,241)' offset='0'/><stop stop-color='rgb(165,49,244)' offset='0.12981'/><stop stop-color='rgb(110,72,248)' offset='0.25962'/><stop stop-color='rgb(82,84,250)' offset='0.32452'/><stop stop-color='rgb(55,96,251)' offset='0.38942'/><stop stop-color='rgb(27,107,253)' offset='0.45433'/><stop stop-color='rgb(14,113,254)' offset='0.48678'/><stop stop-color='rgb(0,119,255)' offset='0.51923'/><stop stop-color='rgb(0,166,255)' offset='1'/></radialGradient></defs></svg>")
      center / 100% 100% no-repeat;
  /* Figma draws the stroke inside, over the fill: the fill spans the border box too. */
  background-origin: border-box;
  box-shadow: inset 0 -5px 24px 0 rgba(0, 54, 146, 0.24);
  font-size: 16px;
  line-height: 24px;
}

.btn-main:hover {
  filter: brightness(1.08) saturate(1.05);
}

.btn-main img {
  width: 20px;
  height: 20px;
}

/* Landing hero */

main {
  flex: 1 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 656px) 280px;
  justify-content: space-between;
  align-items: start;
  padding-top: 55px;
  padding-bottom: 89px;
}

.hero-content {
  padding-top: 89px;
}

.hero-title {
  margin: 0;
  font-size: 48px;
  line-height: 65px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-title span {
  display: block;
  color: var(--accent-soft);
}

.hero-text {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 24px;
}

.hero-text > span {
  display: block;
}

.hero-cta {
  margin-top: 32px;
}

.illustration {
  position: relative;
  width: 280px;
  aspect-ratio: 280 / 568;
}

.illustration .phone {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Soft glows, exported from Figma with their blur baked in: the violet one behind the
   mascot, the pink one over the heart. Percentages keep them in place as it scales. */
.illustration .halo {
  position: absolute;
  max-width: none;
  pointer-events: none;
}

.illustration .halo-violet {
  left: -50.56%;
  top: -20.17%;
  width: 202.56%;
  height: auto;
}

.illustration .halo-pink {
  left: 22.14%;
  top: 14.79%;
  width: 80.36%;
  height: auto;
}

/* Footer */

.footer {
  position: relative;
  overflow: hidden;
  min-height: 288px;
  margin-top: auto;
  /* Figma's 36 / 56 / 76, less the 1px border (its stroke is drawn inside). */
  padding: 35px 55px 75px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #0c0f18 0%, rgba(12, 15, 24, 0.7) 100%);
}

.footer-glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Only the top fringe of three big blurred ellipses shows at the footer's bottom edge;
   they hang off the bottom so they stay put whatever height the footer grows to. */
.footer-glows img {
  position: absolute;
  max-width: none;
}

.footer-glows .glow-blue {
  left: -288px;
  bottom: -796px;
  width: 1217px;
  height: 919px;
}

.footer-glows .glow-cyan {
  left: 395px;
  bottom: -772px;
  width: 936px;
  height: 895px;
}

.footer-glows .glow-pink {
  left: -57px;
  bottom: -764px;
  width: 1217px;
  height: 919px;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 280px 280px 168px auto;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
}

.footer-brand p {
  margin: 0;
}

.footer-col h2 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--text);
}

.footer a[aria-current="page"] {
  color: var(--text);
}

.disclaimer {
  position: relative;
  max-width: 656px;
  margin: 32px 0 0;
  color: var(--text-faint);
}

/* Documents */

.doc {
  max-width: 720px;
  padding: 56px 0 96px;
}

.doc h1 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
}

.doc .doc-lead {
  margin: 0;
  font-weight: 600;
}

.doc .doc-meta {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.doc .doc-meta + p {
  margin-top: 24px;
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
}

.doc p,
.doc ul,
.doc ol,
.doc table {
  margin: 0 0 12px;
  color: var(--body);
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 6px;
}

.doc li::marker {
  color: var(--text-muted);
}

.doc strong {
  color: var(--text);
  font-weight: 700;
}

.doc a {
  color: #6aa8ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc .table-wrap {
  overflow-x: auto;
  margin: 0 0 12px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
}

.doc th,
.doc td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc th {
  color: var(--text);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

/* Narrower screens: the Figma frame is 1920 wide with a 1104 container; below that the
   container follows the window, the hero shrinks, then stacks. */

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 48px;
  }

  .illustration {
    width: 240px;
  }

  .hero-content {
    padding-top: 72px;
  }

  .hero-title {
    font-size: clamp(36px, 4.4vw, 48px);
    line-height: 1.35;
  }

  .hero-text > span {
    display: inline;
  }

  .footer {
    padding-inline: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  .header {
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-title {
    font-size: clamp(30px, 8.6vw, 40px);
    line-height: 1.25;
  }

  .hero-text {
    margin-top: 16px;
  }

  .hero-cta {
    width: 100%;
    margin-top: 28px;
  }

  .illustration {
    justify-self: center;
    width: min(240px, 66vw);
  }

  .footer {
    padding: 32px 24px 64px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .disclaimer {
    margin-top: 36px;
  }

  .doc {
    padding: 40px 0 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
