@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Onest-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/Onest-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Onest-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
}

:root {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --ink: #171417;
  --muted: #625f64;
  --soft: #8a858b;
  --line: #e7e2dd;
  --gradient: linear-gradient(67deg, #eeaeca 0%, #94bbe9 100%);
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  padding-top: var(--nav-height);
  color: var(--ink);
  background: var(--canvas);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

button:hover,
a:hover {
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

body[data-view="home"] [data-panel]:not([data-panel="home"]),
body[data-view="privacy"] [data-panel]:not([data-panel="privacy"]),
body[data-view="terms"] [data-panel]:not([data-panel="terms"]),
body[data-view="support"] [data-panel]:not([data-panel="support"]) {
  display: none;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--nav-height);
  padding: 0 max(20px, calc((100vw - 920px) / 2));
  color: var(--muted);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

body[data-view="home"] .site-nav {
  display: flex;
  justify-content: flex-end;
}

body[data-view="home"] .brand-link {
  display: none;
}

.brand-link {
  color: var(--ink);
  font-family: "Space Grotesk", "Onest", sans-serif;
  font-weight: 700;
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

button[aria-current="page"] {
  color: var(--ink);
}

.view {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.home-view {
  display: grid;
  min-height: calc(100vh - var(--nav-height));
  place-content: center;
  justify-items: center;
  padding: 32px 0 72px;
  text-align: center;
}

.home-view h1,
.document h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Space Grotesk", "Onest", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.home-view h1 {
  font-size: clamp(4.2rem, 16vw, 11rem);
  line-height: 0.86;
}

.home-view h1::after {
  display: block;
  width: min(540px, 76vw);
  height: 12px;
  margin: clamp(18px, 3vw, 30px) auto 0;
  content: "";
  background: var(--gradient);
}

.home-view p {
  max-width: 760px;
  margin: clamp(24px, 4vw, 36px) 0 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.12;
}

.document {
  max-width: 850px;
  padding: 52px 0 40px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document h1 {
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.92;
}

.document h2 {
  margin: 2rem 0 0.7rem;
  color: var(--ink);
  font-family: "Space Grotesk", "Onest", sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0;
}

.document p,
.document li {
  color: var(--muted);
}

.document strong {
  color: var(--ink);
}

.document a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: rgba(238, 174, 202, 0.9);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.updated {
  margin-top: 0.8rem;
  color: var(--soft);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  :root {
    --nav-height: 106px;
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .view {
    width: min(100% - 28px, 920px);
  }

  .home-view {
    min-height: calc(100vh - var(--nav-height));
    padding-top: 32px;
  }

  .document {
    padding-top: 40px;
  }
}
