/* Nextpoint website styles. Desktop layout follows the 1440 x 1024 design frame. */

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

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

:root {
  --bg: #050505;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.8);
  --text-faint: rgba(255, 255, 255, 0.6);
  --accent: #6eff04;
  --gutter: 40px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 16px;
}

.brand {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  border-radius: 6px;
}

.brand img {
  width: 150px;
  height: auto;
}

.download-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 29px;
  background: #ffffff;
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.download-pill img {
  width: 16px;
  height: auto;
}

.download-pill:hover {
  background: #e6e6e6;
}

/* ---------- Pills shared by the footer ---------- */

/* Frosted pill: translucent fill, background blur and a thin edge that is brighter on the left. */
.glass {
  position: relative;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.1) 22%, rgba(255, 255, 255, 0.09) 78%, rgba(255, 255, 255, 0.17) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.legal-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin: 0;
  padding: 12px 20px;
  list-style: none;
  border-radius: 24px;
  background: linear-gradient(132.585deg, rgba(255, 255, 255, 0.075) 0.21%, rgba(255, 255, 255, 0.036) 99.79%);
}

.legal-nav li {
  display: flex;
  align-items: center;
  gap: 24px;
}

.legal-nav a {
  display: inline-block;
  padding: 2px 0;
  border-radius: 4px;
  color: var(--text-soft);
  font-size: 16px;
  letter-spacing: -0.05em;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.chat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 10px 16px;
  border-radius: 36px;
  background: linear-gradient(105.56deg, rgba(255, 255, 255, 0.075) 0.21%, rgba(255, 255, 255, 0.036) 99.79%);
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.05em;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.chat-pill img {
  width: 28px;
  height: 28px;
}

.chat-pill:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.site-footer {
  position: relative;
  z-index: 3;
  padding: 32px 16px;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.legal-line {
  max-width: 600px;
  margin: 16px 0 0;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: -0.05em;
  line-height: normal;
}

/* ---------- Home: mobile first ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 720px;
  overflow: hidden;
}

.hero-photo,
.photo,
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.photo img {
  max-width: none;
  object-fit: cover;
  object-position: 40% 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.5) 0%, rgba(5, 5, 5, 0.68) 45%, #050505 100%);
}

.chip {
  display: none;
}

.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 40px 16px 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-shadow: 0 1px 16px rgba(5, 5, 5, 0.6);
}

.hero-title {
  margin: 0;
  font-size: clamp(32px, 10vw, 56px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}

.hero-sub {
  max-width: 20.96em;
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.05em;
  line-height: normal;
}

.store-badge {
  display: block;
  border-radius: 8px;
}

.store-badge img {
  width: 168px;
  height: 56px;
}

.hero-phone {
  width: min(86vw, 420px);
  margin: 32px auto 0;
}

.hero-phone img {
  width: 100%;
}

/* Very narrow phones: the header pill keeps its label for screen readers only. */
@media (max-width: 359px) {
  .download-pill {
    width: 40px;
    padding: 0;
  }

  .download-pill span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- Desktop (design frame) ---------- */

@media (min-width: 900px) {
  .site-header {
    align-items: flex-start;
    padding: 40px var(--gutter) 0;
  }

  .brand {
    margin: -1px 0 0 -3px;
  }

  .brand img {
    width: 283px;
  }

  .download-pill {
    gap: 16px;
    height: 48px;
    padding: 12px 16px;
    font-size: 16px;
  }

  .download-pill img {
    width: 20px;
  }

  .legal-nav ul {
    flex-wrap: nowrap;
    gap: 24px;
    padding: 10px 16px;
    border-radius: 36px;
  }

  .legal-nav li + li::before {
    content: "";
    flex: 0 0 auto;
    width: 1px;
    height: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
    mix-blend-mode: plus-lighter;
  }

  .legal-nav a {
    padding: 0;
    font-size: 20px;
  }

  .chat-pill {
    font-size: 20px;
  }

  .site-footer {
    padding: 0 var(--gutter) 40px;
  }

  .footer-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
  }

  .legal-line {
    max-width: min(600px, 52vw);
    margin-top: 12px;
    font-size: 11px;
  }

  /* Home hero fills the window like the design frame. */
  .hero {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
  }

  .home .site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
  }

  .home .site-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .hero-bg {
    bottom: 0;
    height: auto;
    container-type: size;
  }

  /* The photo keeps the frame's crop: full height, shifted 1.21% left. */
  .hero-photo {
    inset: 0 auto auto -1.21cqw;
    width: max(101.21cqw, 179.18cqh);
    height: auto;
    aspect-ratio: 4096 / 2286;
    container-type: inline-size;
  }

  .hero-shade {
    background: radial-gradient(110.02% 54.64% at 50% 45.36%, rgba(5, 5, 5, 0) 0%, #050505 100%);
  }

  /* Floating "+15.16" chip sits on the ball in the photo and scales with it. */
  .chip {
    --u: calc(100cqw / 1834.9);
    position: absolute;
    top: 18.64%;
    left: 50.91%;
    display: flex;
    align-items: center;
    gap: var(--u);
    padding: calc(6.045 * var(--u)) calc(8.463 * var(--u));
    border-radius: calc(4.836 * var(--u));
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(calc(10 * var(--u)));
    backdrop-filter: blur(calc(10 * var(--u)));
    color: var(--accent);
    font-size: calc(16.926 * var(--u));
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(9.77deg);
  }

  .chip picture,
  .chip img {
    width: calc(16 * var(--u));
    height: calc(16 * var(--u));
  }

  .hero-main {
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    padding: 144px var(--gutter);
  }

  .hero-copy {
    width: 705px;
    max-width: 58%;
  }

  .hero-text {
    text-shadow: none;
  }

  .hero-title {
    font-size: clamp(48px, 5vw, 72px);
  }

  .hero-sub {
    font-size: clamp(20px, 1.6667vw, 24px);
  }

  /* 547 x 935 at (894, 233) on the 1440 x 1024 frame; scales with the smaller window side. */
  .hero-phone {
    position: absolute;
    top: 22.75%;
    right: -1px;
    z-index: 1;
    width: min(37.99%, 53.42vh);
    margin: 0;
  }
}

/* Between tablet and full desktop the five footer links get a little tighter. */
@media (min-width: 900px) and (max-width: 1199px) {
  .legal-nav ul,
  .legal-nav li {
    gap: 14px;
  }

  .legal-nav a,
  .chat-pill {
    font-size: 16px;
  }
}

/* ---------- Text pages ---------- */

.doc {
  background:
    radial-gradient(80% 420px at 50% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 100%),
    var(--bg);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.doc-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

.doc-main h1 {
  margin: 0 0 32px;
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.doc-body {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.65;
}

.doc-body h2,
.doc-body h3,
.doc-body h4 {
  margin: 2em 0 0.6em;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.doc-body h2 {
  font-size: 26px;
}

.doc-body h3 {
  font-size: 21px;
}

.doc-body h4 {
  font-size: 18px;
}

.doc-body p,
.doc-body ul,
.doc-body ol,
.doc-body table {
  margin: 0 0 1.1em;
}

.doc-body ul,
.doc-body ol {
  padding-left: 1.4em;
}

.doc-body li + li {
  margin-top: 0.4em;
}

.doc-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.doc-body th,
.doc-body td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
  vertical-align: top;
}

.doc-body th {
  color: var(--text);
  font-weight: 500;
}

.placeholder {
  padding: 28px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.75);
}

.doc-body .back-link {
  display: inline-flex;
  align-items: center;
  height: 48px;
  margin-top: 8px;
  padding: 0 20px;
  border-radius: 29px;
  background: #ffffff;
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
}

.doc-body .back-link:hover {
  background: #e6e6e6;
}

@media (min-width: 900px) {
  .doc-main {
    padding: 96px var(--gutter) 96px;
  }

  .doc .site-footer {
    padding-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
