* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #111110;
  --paper: #ffffff;
  --muted: rgba(17, 17, 16, .62);
  --faint: rgba(17, 17, 16, .40);
  --line: rgba(17, 17, 16, .10);
  --hair: rgba(17, 17, 16, .07);
  --surface: #fafaf9;

  --yellow: #ffe58f;
  --green: #c3ecd0;
  --blue: #c2ddf7;
  --pink: #fbcedb;
  --purple: #ddd0f8;

  --ease: cubic-bezier(.22, .68, .28, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Roboto, system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: var(--ink); }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 132px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--ink);
  color: #fbfbfa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wordmark {
  margin-top: 20px;
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tagline {
  margin-top: 12px;
  max-width: 420px;
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.55;
  color: var(--muted);
}

.download {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 36px;
  border-radius: 14px;
  background: var(--ink);
  color: #f7f7f5;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 200ms var(--ease), transform 200ms var(--ease),
              box-shadow 200ms var(--ease);
}

.download:hover {
  background: #33322f;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(17, 17, 16, .55);
}

.download:active { transform: translateY(0); }


.cue-wrap {
  position: absolute;
  left: 50%;
  bottom: 40px;
  translate: -50% 0;
}

.cue {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  animation:
    rise .7s var(--ease) .8s both,
    breathe 2.4s var(--ease) 1.6s infinite;
  transition: background 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease);
}

.cue:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #f7f7f5;
}

.cue svg { animation: bob 2.4s var(--ease) 1.6s infinite; }

@keyframes breathe {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(17, 17, 16, .13); }
  50%      { transform: scale(1.14); box-shadow: 0 0 0 12px rgba(17, 17, 16, 0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}


@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.hero-inner > * { animation: rise .8s var(--ease) both; }
.hero-inner > .logo     { animation-delay: .05s; }
.hero-inner > .wordmark { animation-delay: .16s; }
.hero-inner > .tagline  { animation-delay: .27s; }
.hero-inner > .download { animation-delay: .40s; }


.section {
  padding: clamp(84px, 13vh, 144px) 0;
  border-top: 1px solid var(--hair);
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--faint);
}

.title {
  margin-top: 14px;
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
  max-width: 15ch;
}

.lede {
  margin-top: 18px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.lede.center { margin-left: auto; margin-right: auto; text-align: center; }

#library .eyebrow,
#library .title,
#how .eyebrow,
#how .title { text-align: center; }

#library .title,
#how .title { margin-left: auto; margin-right: auto; }


.steps {
  margin-top: 56px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease),
              border-color 300ms var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 17, 16, .18);
  box-shadow: 0 22px 44px -28px rgba(17, 17, 16, .45);
}

.num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--faint);
}

.step h3 {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.step > p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.mock {
  position: relative;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: var(--surface);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.mock-copy {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(17, 17, 16, .78);
}

.mock-sel {
  background: rgba(17, 17, 16, .16);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(17, 17, 16, .16);
}

.mock-mark {
  background: var(--yellow);
  color: var(--ink);
  border-radius: 3px;
  padding: 1px 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.mock-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--ink);
  color: #fbfbfa;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.mock-btn-in { animation: btnIn 3.6s var(--ease) infinite; }

.mock-row {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 11px;
}

.mock-row .mock-btn { align-self: center; flex: none; }

.mock-note {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--faint);
}

@keyframes btnIn {
  0%, 12%   { opacity: 0; transform: translateY(7px) scale(.9); }
  26%, 78%  { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(7px) scale(.9); }
}

.card {
  padding: 14px 15px 12px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
}

.card:hover {
  border-color: rgba(17, 17, 16, .16);
  transform: translateX(2px);
}

.card-copy {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(17, 17, 16, .84);
}

.card-foot {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.note {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(17, 17, 16, .06);
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(17, 17, 16, .72);
}

.note-empty {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--faint);
}

.date {
  flex: none;
  font-size: 11.5px;
  color: var(--faint);
}


.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}

.split-demo {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 30px 60px -40px rgba(17, 17, 16, .5);
}

.swatches {
  display: flex;
  gap: 12px;
}

.sw {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 16, .07);
  animation: pop 3.6s var(--ease) infinite;
}

.sw-yellow { background: var(--yellow); }
.sw-green  { background: var(--green);  animation-delay: .12s; }
.sw-blue   { background: var(--blue);   animation-delay: .24s; }
.sw-pink   { background: var(--pink);   animation-delay: .36s; }
.sw-purple { background: var(--purple); animation-delay: .48s; }

@keyframes pop {
  0%, 62%, 100% { transform: none; }
  16%           { transform: translateY(-8px) scale(1.07); }
}

.demo-copy {
  margin-top: 26px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(17, 17, 16, .78);
}

.cycle { animation: cycle 12s linear infinite; }

@keyframes cycle {
  0%, 100% { background: var(--yellow); }
  20%      { background: var(--green); }
  40%      { background: var(--blue); }
  60%      { background: var(--pink); }
  80%      { background: var(--purple); }
}


.window {
  margin-top: 52px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(17, 17, 16, .6);
}

.win-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hair);
  background: var(--surface);
}

.win-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--ink);
  color: #fbfbfa;
}

.win-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: min(320px, 38vw);
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

.win-body { padding: 22px 18px 26px; }

.win-group {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 12px;
  font-size: 13px;
}

.win-body .card + .card { margin-top: 10px; }
.card + .win-group { padding-top: 24px; }

.group-title { font-weight: 500; }
.group-link  { color: var(--faint); flex: none; }


.cta {
  padding: clamp(96px, 16vh, 172px) 0;
  border-top: 1px solid var(--hair);
  text-align: center;
}

.cta .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta .wordmark { margin-top: 0; }
.cta .tagline  { margin-left: auto; margin-right: auto; }

.footer {
  border-top: 1px solid var(--hair);
  padding: 26px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--faint);
}

.footer-row a {
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.footer-row a:hover { color: var(--ink); }


@supports (animation-timeline: view()) {
  @keyframes reveal {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: none; }
  }

  .reveal {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 6% cover 32%;
  }

  .steps .step:nth-child(2) { animation-range: entry 2% cover 32%; }
  .steps .step:nth-child(3) { animation-range: entry 0% cover 32%; }
}

@supports (animation-timeline: scroll()) {
  @keyframes heroOut {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateY(-30px) scale(.97); }
  }

  @keyframes cueOut {
    from { opacity: 1; }
    to   { opacity: 0; }
  }

  .hero-inner {
    animation: heroOut linear both;
    animation-timeline: scroll(root);
    animation-range: 0 85svh;
  }

  .cue-wrap {
    animation: cueOut linear both;
    animation-timeline: scroll(root);
    animation-range: 0 25svh;
  }
}


@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .title { max-width: 20ch; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 20px; }

  .hero { padding: 80px 20px 124px; }

  .win-bar {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
  }

  .win-search { width: 100%; }
  .win-spacer { display: none; }

  .split-demo { padding: 22px; }

  .card-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition-duration: 1ms !important;
  }

  .reveal,
  .hero-inner,
  .hero-inner > *,
  .cue-wrap,
  .cue,
  .mock-btn {
    opacity: 1 !important;
    transform: none !important;
  }
}
