/* Public splash (landing + login). Inter matches the rest of the app. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");

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

.lp {
  margin: 0;
  background: #eef2f4;
  font-family: "Inter", system-ui, sans-serif;
  color: #111b24;
  -webkit-font-smoothing: antialiased;
}

.splash {
  font-family: "Inter", system-ui, sans-serif;
  color: #111b24;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  overflow: hidden;
  background: #eef2f4;
}

.splash h1,
.splash p { margin: 0; }

.splash a { color: #111b24; text-decoration: none; }
.splash a:hover { color: #3a4a57; }

.splash a:focus-visible,
.splash button:focus-visible {
  outline: 2px solid #111b24;
  outline-offset: 3px;
}

/* Photo fills the viewport. 70% keeps the sensor on the right. */
.splash-bg {
  position: absolute;
  inset: 0;
}

.splash-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  display: block;
}

.splash-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(238, 242, 244, 0.88) 0, rgba(238, 242, 244, 0.8) 640px, rgba(238, 242, 244, 0) 900px);
}

.splash-in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(32px, 6vh, 72px) clamp(24px, 6vw, 100px);
}

.splash-logo .st-brand-img {
  height: 48px;
  width: auto;
  display: block;
}

.splash-langs {
  position: absolute;
  top: clamp(32px, 6vh, 72px);
  right: clamp(24px, 4vw, 56px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
}

.splash-langs a {
  padding: 4px 8px;
  border-radius: 999px;
}

.splash-langs a.on {
  background: #111b24;
  color: #fff;
}

.splash-langs a.on:hover { color: #fff; }

.splash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

.splash .splash-h1,
.splash .st-auth-title {
  font-size: clamp(36px, 3.4vw, 50px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #111b24;
}

.splash .splash-lead {
  font-size: 19px;
  line-height: 1.6;
  color: #55606a;
  max-width: 30em;
  margin-top: 22px;
}

.splash .st-auth-lead {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.45;
  color: #6b7580;
  margin: 0;
}

.splash-actions {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.splash-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 6px;
  background: #111b24;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
}

.splash a.splash-btn { color: #fff; }
.splash a.splash-btn:hover { background: #24323e; color: #fff; }

.splash-btn.line {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #c9d0d5;
}

.splash a.splash-btn.line { color: #111b24; }
.splash a.splash-btn.line:hover { background: #fff; color: #111b24; }

.splash .splash-tag {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a5560;
}

.splash-tag span:nth-child(even) { color: #9aa3ab; }

@media (max-width: 900px) {
  .splash-bg { opacity: 0.45; }

  .splash-fade {
    background: linear-gradient(180deg, rgba(238, 242, 244, 0.5), #eef2f4 70%);
  }

  .splash-logo .st-brand-img { height: 36px; }
}

/* The wordmark is ~241px at 36px tall. Below this width the absolute
   language switcher (top-right) paints over the end of the lockup. */
@media (max-width: 540px) {
  .splash-logo {
    display: inline-block;
    max-width: calc(100% - 96px);
  }

  .splash-logo .st-brand-img {
    height: auto;
    width: auto;
    max-height: 36px;
    max-width: 100%;
  }
}

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

.ls { background: #fff; padding: clamp(64px, 9vw, 112px) 0; }
.ls.alt { background: #eef2f4; }
.ls-w { max-width: 1200px; margin: 0 auto; padding: 0 clamp(24px, 6vw, 100px); }
.ls-h2 { font-size: clamp(30px, 3vw, 42px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 20px; text-wrap: balance; }
.ls-p { font-size: 17px; line-height: 1.65; color: #55606a; max-width: 34em; margin: 0; }
.ls-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ls-health { grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.8fr); }
.ls-watch {
  width: min(100%, 272px);
  margin-inline: auto;
}
.ls-watch img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(17, 27, 36, 0.16));
}
.ls-uses { list-style: none; margin: 36px 0 0; padding: 0; }
.ls-uses li { border-top: 1px solid #c9d0d5; padding-top: 16px; }
.ls-uses h3 { font-size: 16px; font-weight: 500; margin: 0 0 6px; color: #111b24; }
.ls-uses p { font-size: 15px; line-height: 1.6; color: #55606a; margin: 0 0 16px; }
.ls-img { width: 100%; display: block; border-radius: 6px; object-fit: cover; aspect-ratio: 4 / 3; background: #e3e8eb; }
.ls-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; margin-top: 72px; }
.ls-feat { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; padding: 4px clamp(20px, 2.6vw, 40px) 8px; border-left: 1px solid #e3e7ea; }
.ls-feat:first-child { border-left: none; padding-left: 0; }
.ls-feat svg { color: #111b24; margin-bottom: 26px; display: block; width: 40px; height: 40px; }
.ls-feat h3 { align-self: end; font-size: 22px; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 14px; color: #111b24; }
.ls-feat p { font-size: 15px; line-height: 1.65; color: #5b6670; margin: 0; max-width: 24em; }
.ls-step h3 { font-size: 16px; font-weight: 500; margin: 0 0 8px; color: #111b24; }
.ls-step p { font-size: 14.5px; line-height: 1.6; color: #55606a; margin: 0; }
.ls-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 36px; margin-top: 40px; }
.ls-step { border-top: 1px solid #c9d0d5; padding-top: 16px; }
.ls-num { font-size: 12px; letter-spacing: 0.14em; color: #6b7580; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.ls-mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; font-size: 19px; color: #111b24; text-decoration: none; border-bottom: 1px solid #111b24; padding-bottom: 4px; }
.ls-mail:hover { color: #3a4a57; border-color: #3a4a57; }
.ls-dev { position: relative; padding: 0 6% 6% 0; }
.ls-lap-scr { background: #111b24; border-radius: 12px 12px 0 0; padding: 2.2% 2.2% 2.6%; box-shadow: 0 24px 50px rgba(17, 27, 36, 0.16); }
.ls-lap-scr img { display: block; width: 100%; height: auto; border-radius: 2px; }
.ls-lap-base { height: 14px; margin: 0 -5%; background: linear-gradient(180deg, #d9dee2, #b9c1c7); border-radius: 0 0 12px 12px; position: relative; }
.ls-lap-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; transform: translateX(-50%); background: #a9b2b9; border-radius: 0 0 6px 6px; }
.ls-ph { position: absolute; right: 0; bottom: 0; width: 24%; background: #111b24; border-radius: 22px; padding: 6px; box-shadow: 0 20px 40px rgba(17, 27, 36, 0.22); }
.ls-ph img { display: block; width: 100%; height: auto; border-radius: 16px; }
.ls-ipad-shell {
  padding: 3px;
  border-radius: 22px;
  background: #d9dee2;
  box-shadow: 0 22px 44px rgba(17, 27, 36, 0.16);
}
.ls-ipad-body {
  position: relative;
  background: #111b24;
  border-radius: 19px;
  padding: 11px;
}
.ls-ipad-cam {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: #3a4652;
}
.ls-ipad-body img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
}

.ls-foot { background: #132230; color: #c5d0d8; }
.ls-foot .ls-w { padding-top: 56px; padding-bottom: 28px; }
.ls-foot .st-brand-img { height: 44px; width: auto; display: block; filter: brightness(0) invert(1); }
.lf-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.lf-tag { font-size: 15px; color: #dfe6eb; margin: 18px 0 0; }
.lf-h { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.lf-list { display: flex; flex-direction: column; gap: 10px; }
.lf-list a { font-size: 14px; color: #c5d0d8; text-decoration: none; }
.lf-list a:hover { color: #fff; }
.lf-bot { padding-top: 20px; font-size: 12.5px; color: #9fb0bc; }
.ls a:focus-visible,
.ls-foot a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 900px) {
  .ls-split { grid-template-columns: 1fr; }
  /* Same content width in both columns. The desktop rule (padding on every
     side except the first cell's left edge) made the right cell ~20px narrower. */
  .ls-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; row-gap: 40px; }
  .ls-feat,
  .ls-feat:first-child,
  .ls-feat:nth-child(odd) { border-left: none; padding-left: 0; padding-right: 0; }
  .ls-feat:nth-child(even) { border-left: 1px solid #e3e7ea; padding-left: 28px; }
  .ls-feat:nth-child(odd) { padding-right: 28px; }
  .ls-tab { order: 2; }
  .lf-grid { grid-template-columns: 1fr 1fr; }
  .lf-grid > div:first-child { grid-column: 1 / -1; }

  /* Phone width is ~24% of the column. Fixed 6px/22px chrome matches the
     laptop bezel in absolute pixels and reads as a thick frame. */
  .ls-ph { border-radius: 12px; padding: 3px; }
  .ls-ph img { border-radius: 9px; }
}

/* A 2×2 on a phone splits the four facts into two pairs. Longer copy makes
   the top pair much taller, so the set no longer reads as four equal points.
   One column, icon beside the title, gives every fact the same measure. */
@media (max-width: 760px) {
  .ls-feats { grid-template-columns: 1fr; row-gap: 0; margin-top: 48px; }

  .ls-feat,
  .ls-feat:first-child,
  .ls-feat:nth-child(odd),
  .ls-feat:nth-child(even) {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-row: auto;
    column-gap: 14px;
    row-gap: 6px;
    align-items: center;
    padding: 18px 0;
    border-left: none;
    border-top: 1px solid #e3e7ea;
  }

  .ls-feat:first-child { border-top: none; padding-top: 0; }

  .ls-feat svg {
    grid-column: 1;
    grid-row: 1;
    width: 28px;
    height: 28px;
    margin: 0;
  }

  .ls-feat h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    margin: 0;
  }

  .ls-feat p {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
  }
}
