/* landing hero2: the announcement bar, the nav, the deep black hero and the band of rings and white light under it.
 * Builds on tokens.css and base.css. Class prefixes: .lp-announce, .lp-nav, .lp-menu, .lp-hero, .lp-show (the band;
 * the API pricing panel inside it is styled in routing.css). */

/* The shared column for the top of the page: the band panel's width, so the logo, the headline and the panel's
 * left edge all sit on one line. */
.lp-top {
  width: 100%;
  max-width: calc(var(--lp-hero-w) + 2 * 48px);
  margin: 0 auto;
  padding: 0 48px;
}

/* ───────────────────────── Announcement ───────────────────────── */

.lp-announce {
  position: relative;
  z-index: 51;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  padding: 6px var(--lp-gutter);
  background: var(--lp-hero-bg);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-family: var(--lp-font-body);
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, .9);
}
.lp-announce__text { min-width: 0; }
.lp-announce__dot {
  display: inline-block;
  vertical-align: 2px;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--lp-accent);
  box-shadow: 0 0 10px rgba(255, 255, 255, .55);
}
.lp-announce__go {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--lp-r-pill);
  background: #141414;
  border: 1px solid rgba(255, 255, 255, .09);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  transition: background-color 160ms ease;
}
.lp-announce:hover .lp-announce__go { background: var(--lp-hover-2); }
.lp-announce:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* ───────────────────────── S0 nav ───────────────────────── */

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  height: var(--lp-nav-h);
  background: var(--lp-hero-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease;
}
.lp-nav.is-stuck,
.lp-nav.is-open { border-bottom-color: rgba(255, 255, 255, .07); }
.lp-nav__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
}

.lp-nav__brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  margin: -6px -8px;
  border-radius: 10px;
  font-family: var(--lp-font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  transition: background-color 160ms ease;
}
.lp-nav__brand:hover { background: var(--lp-hover); }
.lp-nav__brand img { width: 24px; height: 24px; }
.lp-nav__brand:focus-visible,
.lp-nav__links a:focus-visible,
.lp-nav__login:focus-visible,
.lp-nav__burger:focus-visible,
.lp-menu__links a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.lp-nav__links { display: flex; align-items: center; gap: 2px; }
.lp-nav__links a,
.lp-nav__login {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 13px;
  border-radius: var(--lp-r-pill);
  font-family: var(--lp-font-body);
  font-size: 14px;
  font-weight: 450;
  line-height: 20px;
  color: rgba(255, 255, 255, .88);
  transition: background-color 160ms ease, color 160ms ease;
}
.lp-nav__links a:hover,
.lp-nav__login:hover { background: var(--lp-hover); color: #fff; }

.lp-nav__right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.lp-nav__cta { height: 40px; padding: 0 18px; font-size: 14px; font-weight: 500; }
/* signed in: the member's own circle, the first letter of their name, opens the dashboard */
.lp-nav__me { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #0a0a0a; font: 600 16px/1 var(--lp-font-body); text-decoration: none; cursor: pointer; transition: box-shadow 160ms ease; }
.lp-nav__me:hover { box-shadow: 0 0 0 4px rgba(255, 255, 255, .14); }
.lp-nav__me:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.lp-nav__burger {
  position: relative;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 160ms ease;
}
.lp-nav__burger:hover { background: var(--lp-hover); }
.lp-nav__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 260ms var(--lp-ease);
}
.lp-nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.lp-nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* The phone menu: a black sheet from the bottom of the nav bar down (hero.js sets --lp-menu-top). */
.lp-menu {
  position: fixed;
  inset: var(--lp-menu-top, var(--lp-nav-h)) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 16px var(--lp-gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--lp-hero-bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: lp-menu-in 220ms var(--lp-ease);
}
.lp-menu[hidden] { display: none; }
@keyframes lp-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lp-menu__links { display: flex; flex-direction: column; }
.lp-menu__links a {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 12px;
  margin: 0 -12px;
  border-radius: 12px;
  font-family: var(--lp-font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #fff;
  transition: background-color 160ms ease;
}
.lp-menu__links a:hover { background: var(--lp-hover); }
.lp-menu__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.lp-menu__actions .lp-btn { width: 100%; height: 48px; font-size: 16px; }

html.lp-lock,
html.lp-lock body { overflow: hidden; }

/* ───────────────────────── S1 hero ───────────────────────── */

.lp-hero {
  position: relative;
  isolation: isolate;
  padding: 104px 0 64px;
  background: var(--lp-hero-bg);
}
/* Only a whisper of grain on the black, the same on the announcement, the nav and the hero so they read as one surface. */
.lp-announce::before,
.lp-nav::before,
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--lp-grain-soft);
  background-size: 240px 240px;
  opacity: .055;
  pointer-events: none;
}

.lp-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 452px);
  grid-template-areas: "title lead" "ctas .";
  column-gap: 64px;
}
.lp-hero__title {
  grid-area: title;
  margin: 0;
  font-family: var(--lp-font-display);
  font-weight: 500;
  font-size: var(--lp-hero-h1);
  line-height: var(--lp-hero-h1-lh);
  letter-spacing: var(--lp-hero-h1-ls);
  color: var(--lp-ink);
  font-variation-settings: "opsz" 72;
}
.lp-hero__line { display: block; white-space: nowrap; }
.lp-hero__lead {
  grid-area: lead;
  align-self: end;
  justify-self: end;
  margin: 0;
  padding-bottom: 6px; /* sits on the headline's last baseline, not its line box */
  font-family: var(--lp-font-body);
  font-size: 17px;
  line-height: 26px;
  letter-spacing: .003em;
  color: rgba(255, 255, 255, .86);
  text-wrap: pretty;
}
.lp-hero__ctas {
  grid-area: ctas;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.lp-hero__ctas .lp-btn { height: 48px; padding: 0 24px; font-size: 15px; font-weight: 500; }
.lp-hero__dark {
  background: #111;
  border-color: rgba(255, 255, 255, .08);
  color: #fff;
}
.lp-hero__dark:hover { background: var(--lp-hover-2); }

/* A calm entrance on first paint: the blocks rise a few pixels, one after another. */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero__title,
  .lp-hero__lead,
  .lp-hero__ctas { animation: lp-rise 800ms var(--lp-ease) both; }
  .lp-hero__lead { animation-delay: 80ms; }
  .lp-hero__ctas { animation-delay: 140ms; }
  .lp-route__frame { animation: lp-rise-frame 1100ms var(--lp-ease) 180ms both; }
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lp-rise-frame { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ───────────────────────── Product band ───────────────────────── */

.lp-show {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0;
  background: var(--lp-page);
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
/* 1. The light: a soft white halo falling from the top edge and a second, wider one rising from below. */
.lp-show__paint {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--lp-halo-top), var(--lp-halo-low);
}
/* hairline rings rising from under the band, fading out toward the sides and the top */
.lp-show__paint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lp-rings);
  -webkit-mask-image: var(--lp-ring-fade);
  mask-image: var(--lp-ring-fade);
}
/* 2. One quiet monochrome grain over it, so the black has a tooth instead of a flat fill. */
.lp-show__grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--lp-grain-soft);
  background-size: 240px 240px;
  opacity: .1;
  pointer-events: none;
}
/* 3. A hairline of light along the top edge. */
.lp-show::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -1px;
  height: 1px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .lp-show__paint { animation: lp-halo-breathe 14s ease-in-out infinite alternate; }
}
@keyframes lp-halo-breathe {
  from { opacity: .78; }
  to { opacity: 1; }
}

.lp-show__stage {
  width: 100%;
  max-width: calc(var(--lp-hero-w) + 2 * 48px);
  margin: 0 auto;
  padding: 0 48px;
}

/* ───────────────────────── Responsive ───────────────────────── */

/* Short laptop screens: a little less air above the headline so the band shows sooner. */
@media (min-width: 861px) and (max-height: 820px) {
  .lp-hero { padding-top: 84px; padding-bottom: 56px; }
}

@media (max-width: 1180px) {
  .lp-top,
  .lp-show__stage { padding: 0 32px; }
  .lp-hero__inner { column-gap: 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
}

@media (max-width: 860px) {
  .lp-nav__inner { grid-template-columns: 1fr auto; }
  .lp-nav__links,
  .lp-nav__login { display: none; }
  .lp-nav__burger { display: flex; }
  .lp-nav__cta { position: relative; height: 36px; padding: 0 16px; }
  /* 36px to look at, 44px to tap (owner rule: tap targets are 44px or more on phone). */
  .lp-nav__cta::before { content: ""; position: absolute; inset: -6px -2px; }
  .lp-nav__burger { width: 44px; height: 44px; margin-right: -6px; }
  .lp-nav__brand { position: relative; }
  .lp-nav__brand::before { content: ""; position: absolute; inset: -5px 0; }

  .lp-hero { padding: 72px 0 48px; }
  .lp-hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lead" "ctas"; }
  .lp-hero__lead { justify-self: start; max-width: 560px; margin-top: 22px; padding-bottom: 0; }
  .lp-hero__ctas { margin-top: 30px; }
}

@media (max-width: 640px) {
  .lp-announce { gap: 10px; font-size: 13px; padding: 6px 12px; }
  .lp-announce__more { display: none; }
  .lp-announce__go { height: 28px; font-size: 12.5px; padding: 0 11px; }

  .lp-top,
  .lp-show__stage { padding: 0 var(--lp-gutter); }
  .lp-nav__brand { font-size: 18px; }

  .lp-hero { padding: 56px 0 44px; }
  .lp-hero__title { text-wrap: balance; }
  .lp-hero__lead { font-size: 16px; line-height: 25px; margin-top: 18px; }
  .lp-hero__ctas { margin-top: 28px; gap: 10px; }
  .lp-hero__ctas .lp-btn { height: 48px; padding: 0 22px; }
  .lp-show { padding: 40px 0; }
}

@media (max-width: 380px) {
  .lp-announce__go { display: none; }
}

/* ───────────────────────── Reduced motion ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .lp-show__paint { animation: none; }
}
