/* SuturePro — coming-soon site
   Tokens follow the iOS app (SPTheme.swift): ink, hairline, one cobalt accent.
   The peach is the practice pad; the thread is the page's one decorative idea. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --frame: #d8dfe9;
  --sheet: #f8f7f3;
  --surface: #fcfcfd;
  --ink: #15171c;
  --ink-2: #555c69;
  --ink-3: #8a919d;
  --hairline: #e3e5ea;
  --accent: #2e5bda;
  --accent-deep: #2248b8;
  --accent-soft: #e4eafa;
  --accent-thread: #c3d0f6;
  --pad: #efcdbd;
  --pad-deep: #e2b6a3;
  --pad-ink: #5a2f25;
  --incision: #8e3a36;
  --warn: #a8690f;

  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4.2vw, 4rem);
  --frame-gap: clamp(0.5rem, 1.4vw, 1.25rem);
  --r-sheet: clamp(1.25rem, 2.4vw, 2rem);
  --r-panel: clamp(1.125rem, 2vw, 1.75rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  padding: var(--frame-gap);
  background: var(--frame);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img,
video {
  height: auto;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip:focus {
  top: 1rem;
}

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

/* ---------- Sheet ---------- */

.sheet {
  position: relative;
  max-width: 100rem;
  margin: 0 auto;
  background: var(--sheet);
  border-radius: var(--r-sheet);
  overflow: clip;
}

.wrap {
  padding-inline: var(--gutter);
}

/* ---------- Shared type ---------- */

.mono {
  font-family: var(--mono);
  font-feature-settings: "zero" 0, "ss09" 1;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.75em;
  height: 1px;
  background: currentColor;
}

.h2 {
  font-size: clamp(2.125rem, 4.6vw, 3.75rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 em {
  font-weight: 300;
  letter-spacing: -0.03em;
}
.h2--break em {
  display: block;
}

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem 0.75rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover {
  background: var(--accent);
}
.btn:active {
  transform: scale(0.98);
}
.btn__icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: color 0.2s;
}
.btn:hover .btn__icon {
  color: var(--accent);
}
.btn__icon svg {
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 0.1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.pill__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

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

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: clamp(1.1rem, 2.2vw, 1.9rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand__mark {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
}

.site-nav ul {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-header .pill {
  justify-self: end;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(1.5rem, 4.5vw, 4.25rem);
  padding-bottom: var(--gutter);
}

.hero__title {
  position: relative;
  z-index: 2;
  font-size: clamp(3.5rem, 10.6vw, 9.25rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.hero__title span {
  display: block;
}
.hero__title em {
  display: block;
  font-weight: 250;
  letter-spacing: -0.04em;
  /* optical: the light italic sits a touch left of the bold line */
  margin-left: 0.03em;
}

.hero__panel {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  border-radius: var(--r-panel);
  background: var(--accent-soft);
  isolation: isolate;
}

.hero__thread {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.hero__thread svg {
  width: 100%;
  height: 100%;
}
.thread-path {
  fill: none;
  stroke: var(--accent-thread);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.hero__copy {
  display: grid;
  gap: 1.75rem;
  justify-items: start;
  width: min(100%, 31rem);
  padding: clamp(1.75rem, 3.6vw, 3.25rem);
  padding-right: 0;
}
.hero__copy .lede {
  color: var(--ink);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}
.hero__meta li + li::before {
  content: "";
  width: 1px;
  height: 0.9em;
  background: currentColor;
  opacity: 0.4;
}

.hero__device {
  position: absolute;
  z-index: 3;
  right: calc(var(--gutter) + clamp(1rem, 2.4vw, 2.5rem));
  bottom: calc(var(--gutter) + clamp(1.25rem, 2.6vw, 2.5rem));
  width: min(50%, 46rem);
}

/* ---------- Phone ---------- */

.phone {
  container-type: inline-size;
  position: relative;
  width: 100%;
}
.phone__body {
  position: relative;
  padding: 1.55cqw;
  border-radius: 7.4cqw;
  background: #1a1b20;
  box-shadow:
    inset 0 0 0 0.22cqw #34363d,
    inset 0 0 0 0.5cqw #0d0e11,
    0 1.2cqw 2.4cqw rgba(21, 23, 28, 0.1),
    0 5cqw 9cqw -2cqw rgba(21, 23, 28, 0.28);
}
.phone__screen {
  position: relative;
  aspect-ratio: 2622 / 1206;
  overflow: hidden;
  border-radius: 5.9cqw;
  background: var(--surface);
}
.phone__screen img,
.phone__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone__island {
  position: absolute;
  left: 3.5cqw;
  top: 50%;
  width: 3.55cqw;
  height: 12.2cqw;
  border-radius: 999px;
  background: #050506;
  transform: translateY(-50%);
}

/* ---------- Sections ---------- */

.section {
  padding-top: var(--section);
}

.section__head {
  display: grid;
  gap: 1.1rem;
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

/* ---------- Trailer ---------- */

.trailer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem 3rem;
  max-width: none;
}
.trailer__head .lede {
  max-width: 26rem;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-panel);
  background: var(--ink);
  box-shadow: 0 2.5rem 5rem -2.5rem rgba(21, 23, 28, 0.45);
}
.player > video,
.player > iframe,
.player__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.player__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: #fff;
}
.player__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 23, 28, 0.5), rgba(21, 23, 28, 0) 45%);
  transition: opacity 0.3s;
}
.player__play {
  position: absolute;
  z-index: 1;
  left: clamp(1rem, 3vw, 2.25rem);
  bottom: clamp(1rem, 3vw, 2.25rem);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 600;
  font-size: clamp(0.9375rem, 1.4vw, 1.125rem);
}
.player__play-disc {
  display: grid;
  place-items: center;
  width: clamp(3.5rem, 6vw, 5rem);
  height: clamp(3.5rem, 6vw, 5rem);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: transform 0.3s var(--ease), background-color 0.2s, color 0.2s;
}
.player__play-disc svg {
  width: 30%;
  height: 30%;
  margin-left: 6%;
}
.player__poster:hover .player__play-disc {
  transform: scale(1.07);
  background: var(--accent);
  color: #fff;
}
.player__time {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.85;
}

/* ---------- Features ---------- */

.features {
  display: grid;
  gap: clamp(4rem, 9vw, 8rem);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5rem);
}
.feature:nth-child(even) {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.feature:nth-child(even) .feature__media {
  order: 2;
}

.feature__media {
  position: relative;
  padding: clamp(1.25rem, 3.4vw, 3rem);
  border-radius: var(--r-panel);
  background: var(--accent-soft);
}
.feature--pad .feature__media {
  background: var(--pad);
}
.feature--plain .feature__media {
  background: #ecebe5;
}

.feature__body {
  display: grid;
  gap: 1.15rem;
  justify-items: start;
}
.feature__index {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.feature__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.feature__text {
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 30rem;
}

.readout {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem clamp(1.25rem, 3vw, 2.5rem);
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--hairline);
}
.readout div {
  display: grid;
  gap: 0.2rem;
}
.readout dt {
  order: 2;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.readout dd {
  font-family: var(--mono);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.readout .is-estimate {
  color: var(--warn);
}

.note {
  max-width: 44rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.features + .note {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---------- How it works ---------- */

.how {
  margin-top: var(--section);
  margin-inline: var(--frame-gap);
  padding: clamp(2.5rem, 6vw, 5.5rem) calc(var(--gutter) - var(--frame-gap));
  border-radius: var(--r-panel);
  background: var(--pad);
  color: var(--pad-ink);
}
.how .eyebrow {
  color: var(--incision);
}
.how .h2 {
  color: #2a1612;
}

.wound {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
  overflow: visible;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.step {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  justify-items: center;
  padding-inline: clamp(0.75rem, 2vw, 2rem);
  text-align: center;
}
.step__title {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #2a1612;
}
.step__text {
  max-width: 21rem;
  font-size: 1rem;
}

/* ---------- Details ---------- */

.details {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.details .section__head {
  position: sticky;
  top: 2rem;
  margin-bottom: 0;
}
.details__list {
  border-top: 1px solid var(--ink);
}
.details__row {
  display: grid;
  grid-template-columns: minmax(8rem, 3fr) minmax(0, 7fr);
  gap: 0.35rem 2rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--hairline);
}
.details__row dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 0.2em;
}
.details__row dd {
  text-wrap: pretty;
}

/* ---------- Closing ---------- */

.closing {
  position: relative;
  margin: var(--section) var(--frame-gap) 0;
  padding: clamp(3rem, 8vw, 7rem) calc(var(--gutter) - var(--frame-gap));
  border-radius: var(--r-panel);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.closing__thread {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.closing__thread .thread-path {
  stroke: #262a35;
}
.closing__inner {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  max-width: 44rem;
}
.closing .eyebrow {
  color: #9db4ff;
}
.closing__title {
  font-size: clamp(2.75rem, 7.4vw, 6.25rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.closing__title em {
  display: block;
  font-weight: 250;
}
.closing .lede {
  color: #c2c7d2;
  max-width: 34rem;
}
.closing .btn {
  background: #fff;
  color: var(--ink);
}
.closing .btn:hover {
  background: var(--accent);
  color: #fff;
}
.closing .btn__icon {
  background: var(--ink);
  color: #fff;
}
.closing .btn:hover .btn__icon {
  background: #fff;
  color: var(--accent);
}

/* ---------- 404 ---------- */

.lost {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding-block: clamp(4rem, 14vw, 10rem);
}
.btn--plain {
  padding-inline: 1.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem 1.75rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.site-footer .brand {
  font-size: 1rem;
  color: var(--ink);
}
.site-footer__legal {
  max-width: 44rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .thread-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 2.4s var(--ease) 0.25s;
  }
  .js .is-in .thread-draw,
  .js .thread-draw.is-in {
    stroke-dashoffset: 0;
  }

  .js .reveal {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .js .hero__device {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.985);
    transition: opacity 0.8s var(--ease) 0.15s, transform 1.1s var(--ease) 0.15s;
  }
  .js.is-ready .hero__device {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 68rem) {
  .hero__device {
    right: calc(var(--gutter) + 1rem);
    width: min(50%, 36rem);
  }
  .hero__copy {
    width: min(42%, 25rem);
  }
}

@media (max-width: 56rem) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .site-nav {
    display: none;
  }

  .hero__device {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: clamp(1.75rem, 6vw, 2.75rem);
    margin-bottom: clamp(-5rem, -12vw, -3rem);
    padding-inline: clamp(0.5rem, 3vw, 1.5rem);
  }
  .hero__panel {
    margin-top: 0;
    padding-top: clamp(3rem, 12vw, 5rem);
  }
  .hero__copy {
    width: 100%;
    max-width: 34rem;
    padding-right: clamp(1.75rem, 3.6vw, 3.25rem);
  }

  .feature,
  .feature:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature:nth-child(even) .feature__media {
    order: 0;
  }

  .details {
    grid-template-columns: minmax(0, 1fr);
  }
  .details .section__head {
    position: static;
  }

  .hero__thread svg {
    opacity: 0.55;
  }

  .steps {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .steps::before {
    content: "";
    position: absolute;
    left: 1.375rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 4px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--incision);
    box-shadow: 0 0 0 4px rgba(142, 58, 54, 0.16);
  }
  .step__glyph {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 1.75rem;
    grid-row: 1 / span 2;
    align-self: start;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
  }
  .wound--wide {
    display: none;
  }
  .step {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1.1rem;
    justify-items: start;
    padding-inline: 0;
    text-align: left;
  }
  .step__text {
    grid-column: 2;
  }
}

@media (min-width: 56.0625rem) {
  .step__glyph {
    display: none;
  }
}

@media (max-width: 30rem) {
  .readout dd {
    font-size: 1.125rem;
  }
  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__meta li + li::before {
    display: none;
  }
  .details__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .pill {
    min-height: 2.25rem;
    padding-inline: 0.8rem;
    font-size: 0.8125rem;
  }
}

@media print {
  body {
    padding: 0;
    background: #fff;
  }
  .player,
  .hero__thread,
  .closing__thread {
    display: none;
  }
}
